Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions internal/bundler/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,16 +240,16 @@ func checkForBreakingChanges(ctx BundleContext, language string, runtime string)
if err := change.Callback(ctx); err != nil {
return err
}
os.Exit(1)
return fmt.Errorf("migration performed, please re-run the command")
} else {
return fmt.Errorf("migration required")
}
} else {
if tui.HasTTY && !ctx.DevMode {
tui.ShowBanner(change.Title, change.Message, true)
os.Exit(1)
return fmt.Errorf("breaking change migration required")
} else {
ctx.Logger.Fatal(change.Message)
return fmt.Errorf("%s", change.Message)
}
}
}
Expand Down
Loading