mirror of
https://github.com/nishiki/manage-password.git
synced 2024-11-27 07:33:05 +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?
|
if not @data.delete_at(id.to_i).nil?
|
||||||
return true
|
return true
|
||||||
else
|
else
|
||||||
|
@error_msg = "Can't delete the item, the item #{id} doesn't exist!"
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue