From aff7413624717b1f4e0ff1a5b00cff95197118fd Mon Sep 17 00:00:00 2001 From: Shlomi Noach Date: Mon, 2 Oct 2017 16:00:58 +0300 Subject: [PATCH] clearer error message when not able to create postpone-cut-over-flag-file --- go/logic/migrator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/logic/migrator.go b/go/logic/migrator.go index cedfa69..b320161 100644 --- a/go/logic/migrator.go +++ b/go/logic/migrator.go @@ -269,7 +269,7 @@ func (this *Migrator) createFlagFiles() (err error) { if this.migrationContext.PostponeCutOverFlagFile != "" { if !base.FileExists(this.migrationContext.PostponeCutOverFlagFile) { if err := base.TouchFile(this.migrationContext.PostponeCutOverFlagFile); err != nil { - return err + return log.Errorf("--postpone-cut-over-flag-file indicated by gh-ost is unable to create said file: %s", err.Error()) } log.Infof("Created postpone-cut-over-flag-file: %s", this.migrationContext.PostponeCutOverFlagFile) }