mirror of
https://github.com/octoleo/restic.git
synced 2024-12-23 11:28:54 +00:00
Improve error message if no targets specified
This commit is contained in:
parent
e117f613af
commit
e5d4e33509
@ -324,7 +324,7 @@ func runBackup(opts BackupOptions, gopts GlobalOptions, args []string) error {
|
||||
// same time
|
||||
args = append(args, fromfile...)
|
||||
if len(args) == 0 {
|
||||
return errors.Fatal("wrong number of parameters")
|
||||
return errors.Fatal("nothing to backup, please specify target files/dirs")
|
||||
}
|
||||
|
||||
target := make([]string, 0, len(args))
|
||||
|
Loading…
Reference in New Issue
Block a user