mirror of
https://github.com/nishiki/manage-password.git
synced 2024-11-23 13:57:52 +00:00
add error message for the delete item
This commit is contained in:
parent
906a7d4b4b
commit
499039585a
1 changed files with 1 additions and 0 deletions
1
MPW.rb
1
MPW.rb
|
@ -283,6 +283,7 @@ class MPW
|
|||
if not @data.delete_at(id.to_i).nil?
|
||||
return true
|
||||
else
|
||||
@error_msg = "Can't delete the item, the item #{id} doesn't exist!"
|
||||
return false
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue