Skip to content

Commit 22c2e3e

Browse files
committed
correct error message
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
1 parent dfd58d0 commit 22c2e3e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

go/logic/applier.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ func (this *Applier) CreateGhostTable() error {
217217
if _, err := tx.Exec(query); err != nil {
218218
return err
219219
}
220-
this.migrationContext.Log.Infof("Ghost table altered")
220+
this.migrationContext.Log.Infof("Ghost table created")
221221
if err := tx.Commit(); err != nil {
222222
// Neither SET SESSION nor ALTER are really transactional, so strictly speaking
223223
// there's no need to commit; but let's do this the legit way anyway.
@@ -226,11 +226,7 @@ func (this *Applier) CreateGhostTable() error {
226226
return nil
227227
}()
228228

229-
if err != nil {
230-
return err
231-
}
232-
this.migrationContext.Log.Infof("Ghost table created")
233-
return nil
229+
return err
234230
}
235231

236232
// AlterGhost applies `alter` statement on ghost table

0 commit comments

Comments
 (0)