forked from TrueCloudLab/restic
cat: Do not display a stack trace
Don't show a stack trace when "restic cat snapshot" is invoked with invalid/nonexistent IDs.
This commit is contained in:
parent
e42b7db008
commit
ffc276a603
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ func runCat(gopts GlobalOptions, args []string) error {
|
||||||
// find snapshot id with prefix
|
// find snapshot id with prefix
|
||||||
id, err = restic.FindSnapshot(repo, args[1])
|
id, err = restic.FindSnapshot(repo, args[1])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return errors.Fatalf("could not find snapshot: %v\n", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue