Report failure without hints.

Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
This commit is contained in:
Arun Prakash Jana 2016-03-20 13:13:41 +05:30
parent a119945ccf
commit 365bb2002c

2
buku
View File

@ -673,7 +673,7 @@ def decrypt_file():
dbhash = get_filehash(dbpath) dbhash = get_filehash(dbpath)
if dbhash != enchash: if dbhash != enchash:
os.remove(dbpath) os.remove(dbpath)
print("Wrong password") print("Decryption failed");
else: else:
os.remove(encpath) os.remove(encpath)
print("File decrypted") print("File decrypted")