1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2024-10-27 10:43:20 +00:00

add error message for the delete item

This commit is contained in:
nishiki 2013-08-31 23:10:07 +02:00
parent 906a7d4b4b
commit 499039585a

1
MPW.rb
View file

@ -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