From 017614c41a084c8c754ef228569ead91cc69b7b6 Mon Sep 17 00:00:00 2001 From: Gautam Menghani Date: Mon, 27 Dec 2021 22:42:27 +0530 Subject: [PATCH] [#issue 3463] Improve clarity of error message in restic ls command --- cmd/restic/cmd_ls.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/restic/cmd_ls.go b/cmd/restic/cmd_ls.go index 9f1ab7ec6..ff903a090 100644 --- a/cmd/restic/cmd_ls.go +++ b/cmd/restic/cmd_ls.go @@ -116,7 +116,7 @@ func lsNodeJSON(enc *json.Encoder, path string, node *restic.Node) error { func runLs(opts LsOptions, gopts GlobalOptions, args []string) error { if len(args) == 0 { - return errors.Fatal("no snapshot ID specified") + return errors.Fatal("no snapshot ID specified, specify snapshot ID or use special ID 'latest'") } // extract any specific directories to walk