1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-24 08:44:52 +00:00

Add better error message for 'cat'

This commit is contained in:
Alexander Neumann 2016-08-30 21:19:04 +02:00
parent 9cf63c99cf
commit 8d90588020

View file

@ -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