From e5d4e335093ac11c3cb20f9380130b9063969ccb Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sun, 10 Sep 2017 15:14:11 +0200 Subject: [PATCH] Improve error message if no targets specified --- cmd/restic/cmd_backup.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/restic/cmd_backup.go b/cmd/restic/cmd_backup.go index a994717f4..dbf8cb423 100644 --- a/cmd/restic/cmd_backup.go +++ b/cmd/restic/cmd_backup.go @@ -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))