chore: update

This commit is contained in:
henry.chen
2023-07-12 15:14:47 +08:00
parent c9d04aded3
commit 9a1b4db61a

View File

@@ -24,7 +24,8 @@ func (s Storage) BackupData(now time.Time) error {
case "mongodb":
return backupFromMongoDB(now)
default:
return errors.New("unsupported database source backup to qiniu")
return errors.New("unsupported source backup to qiniu: " +
config.Conf.Database.Driver)
}
}
@@ -34,7 +35,8 @@ func (s Storage) RestoreData() error {
case "mongodb":
return restoreToMongoDB()
default:
return errors.New("unsupported database source backup to qiniu")
return errors.New("unsupported source restore from qiniu: " +
config.Conf.Database.Driver)
}
}