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