[#issue 3463] Improve clarity of error message in restic ls command

This commit is contained in:
Gautam Menghani 2021-12-27 22:42:27 +05:30
parent 882d58abce
commit 017614c41a
1 changed files with 1 additions and 1 deletions

View File

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