2
2
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:
Alexander Neumann 2017-09-10 15:14:11 +02:00
parent e117f613af
commit e5d4e33509

View File

@ -324,7 +324,7 @@ func runBackup(opts BackupOptions, gopts GlobalOptions, args []string) error {
// same time // same time
args = append(args, fromfile...) args = append(args, fromfile...)
if len(args) == 0 { 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)) target := make([]string, 0, len(args))