Skip to content

Commit 23741e7

Browse files
Merge pull request #1105 from Scalingo/style/backups/schedule-at-error-message
style(backups) clearer error message
2 parents a5eb952 + 2f3bac4 commit 23741e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/databases.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,11 +292,11 @@ func parseScheduleAtFlag(flag string) (int, *time.Location, error) {
292292
// "3 Europe/Paris"
293293
s := strings.Split(flag, " ")
294294
if len(s) < 2 {
295-
return -1, nil, errors.New("fail to parse the schedule-at flag")
295+
return -1, nil, errors.New("parse the schedule-at value")
296296
}
297297
scheduleAt, err = strconv.Atoi(s[0])
298298
if err != nil {
299-
return -1, nil, errors.New("fail to parse the schedule-at flag")
299+
return -1, nil, errors.New("parse the schedule-at value")
300300
}
301301
loc, err := time.LoadLocation(s[1])
302302
if err != nil {

0 commit comments

Comments
 (0)