mirror of
https://github.com/octoleo/restic.git
synced 2024-11-26 14:56:29 +00:00
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
@ -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 New Issue
Block a user