Skip to content

Commit aff7413

Browse files
author
Shlomi Noach
committed
clearer error message when not able to create postpone-cut-over-flag-file
1 parent c2186db commit aff7413

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/logic/migrator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ func (this *Migrator) createFlagFiles() (err error) {
269269
if this.migrationContext.PostponeCutOverFlagFile != "" {
270270
if !base.FileExists(this.migrationContext.PostponeCutOverFlagFile) {
271271
if err := base.TouchFile(this.migrationContext.PostponeCutOverFlagFile); err != nil {
272-
return err
272+
return log.Errorf("--postpone-cut-over-flag-file indicated by gh-ost is unable to create said file: %s", err.Error())
273273
}
274274
log.Infof("Created postpone-cut-over-flag-file: %s", this.migrationContext.PostponeCutOverFlagFile)
275275
}

0 commit comments

Comments
 (0)