eb77486 luks2: Improve error reporting when decrypting/verifying key

1 file Authored by Patrick Steinhardt 3 years ago, Committed by Daniel Kiper 3 years ago,
    luks2: Improve error reporting when decrypting/verifying key
    
    While we already set up error messages in both luks2_verify_key() and
    luks2_decrypt_key(), we do not ever print them. This makes it really
    hard to discover why a given key actually failed to decrypt a disk.
    
    Improve this by including the error message in the user-visible output.
    
    Signed-off-by: Patrick Steinhardt <ps@pks.im>
    Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
    
        
file modified
+4 -2