mirror of
https://github.com/octoleo/restic.git
synced 2024-11-22 21:05:10 +00:00
[#issue 3463] Improve clarity of error message in restic ls command
This commit is contained in:
parent
882d58abce
commit
017614c41a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user