rather new restic user here.
I’ve just stumbled over this problem:
restic -r my_backup dump latest some_file > outfile
also includes “wrong password” and “Fatal: an empty password is not a password” error messages in the output file when mistyping the password initially. since in my case it was a binary file (jpeg photo) outfile simply looked corrupted and of course did not open in the jpeg viewer.
question: should those (and possibly other) error messages not be directed to stderr rather than to stdout?