Skip to content

Commit 6721cc4

Browse files
authored
Merge pull request #143 from jkaninda/refactor
refactor: update logger, fix warning message
2 parents 02e3267 + 8e20e95 commit 6721cc4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/restore.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ func restoreFromRemote(db *dbConfig, conf *RestoreConfig) {
9696
}
9797
err = sshStorage.CopyFrom(conf.file)
9898
if err != nil {
99-
utils.Fatal("Error copying backup file: %w", err)
99+
utils.Fatal("Error copying backup file: %s", err)
100100
}
101101
RestoreDatabase(db, conf)
102102
}

utils/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ func CronNextTime(cronExpr string) time.Time {
202202
// Parse the cron expression
203203
schedule, err := cron.ParseStandard(cronExpr)
204204
if err != nil {
205-
Error("Error parsing cron expression:", err)
205+
Error("Error parsing cron expression: %s", err)
206206
return time.Time{}
207207
}
208208
// Get the current time

0 commit comments

Comments
 (0)