mirror of
https://github.com/octoleo/restic.git
synced 2025-02-02 11:58:26 +00:00
Add better error message for 'cat'
This commit is contained in:
parent
9cf63c99cf
commit
8d90588020
@ -53,7 +53,7 @@ func (cmd CmdCat) Execute(args []string) error {
|
||||
id, err = backend.ParseID(args[1])
|
||||
if err != nil {
|
||||
if tpe != "snapshot" {
|
||||
return err
|
||||
return restic.Fatalf("unable to parse ID: %v\n", err)
|
||||
}
|
||||
|
||||
// find snapshot id with prefix
|
||||
|
Loading…
x
Reference in New Issue
Block a user