Skip to content

Commit

Permalink
branch create timeout should be an error (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyangyu authored Sep 24, 2024
1 parent 948d010 commit a9769fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cli/serverless/branch/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ func CreateAndSpinnerWait(ctx context.Context, h *internal.Helper, d cloud.TiDBC
for {
select {
case <-timer:
return ui.Result(fmt.Sprintf("Timeout waiting for branch %s to be ready, please check status on dashboard.", newBranchID))
return errors.New(fmt.Sprintf("Timeout waiting for branch %s to be ready, please check status on dashboard.", newBranchID))
case <-ticker.C:
b, err := d.GetBranch(ctx, clusterId, newBranchID)
if err != nil {
Expand Down

0 comments on commit a9769fb

Please sign in to comment.