Output error message describing the error (cryptsetup luksHeaderBackup)
New feature description
When using cryptsetup luksHeaderBackup
on the mapped device by mistake, there is no message at all, but only exit code 1.
It's not obvious the the novice user that the operation had failed.
Only with option -verbose
there is a message saying "Command failed with code -1 (wrong or missing parameters).".
So I suggest to output an error message on errors (like this). For the specific case something like "Could not find a LUKS header on device %s -- backup failed".
Additional info
Seen in cryptsetup-2.0.6-lp152.4.3.1.x86_64 of openSUSE Leap 15.2