age: improve error on empty files

Fixes #416
This commit is contained in:
Filippo Valsorda
2025-12-23 15:22:55 +01:00
parent 38dd222823
commit ca8a69b1b6
2 changed files with 8 additions and 1 deletions
+5
View File
@@ -15,6 +15,11 @@ age -r age12phkzssndd5axajas2h74vtge62c86xjhd6u9anyanqhzvdg6sps0xthgl -o test.ag
! age -d -i key.txt test.age
stderr 'no identity matched any of the recipients'
# decrypt an empty file
! age -d -i key.txt empty
stderr empty
-- empty --
-- input --
test
-- key.txt --