mirror of
https://github.com/FiloSottile/age.git
synced 2026-03-11 08:55:41 +00:00
cmd/age,internal/stream: improve error messages
This commit is contained in:
parent
f882f40aa3
commit
ae74b61b59
2 changed files with 2 additions and 2 deletions
|
|
@ -181,7 +181,7 @@ func main() {
|
|||
}
|
||||
if armorFlag {
|
||||
errorWithHint("-a/--armor can't be used with -d/--decrypt",
|
||||
"note that armored files are detected automatically")
|
||||
"note that armored files are detected automatically, try again without -a/--armor")
|
||||
}
|
||||
if passFlag {
|
||||
errorWithHint("-p/--passphrase can't be used with -d/--decrypt",
|
||||
|
|
|
|||
|
|
@ -118,7 +118,7 @@ func (r *Reader) readChunk() (last bool, err error) {
|
|||
out, err = r.a.Open(outBuf, r.nonce[:], in, nil)
|
||||
}
|
||||
if err != nil {
|
||||
return false, errors.New("failed to decrypt and authenticate payload chunk")
|
||||
return false, errors.New("failed to decrypt and authenticate payload chunk, file may be corrupted or tampered with")
|
||||
}
|
||||
|
||||
incNonce(&r.nonce)
|
||||
|
|
|
|||
Loading…
Reference in a new issue