Browse Source

Handle errors for save new

yedf2/handle-errors-for-save-new
yedf2 11 months ago
parent
commit
c5a3e5f583
  1. 2
      dtmsvr/api.go

2
dtmsvr/api.go

@ -36,6 +36,8 @@ func svcSubmit(t *TransGlobal) interface{} {
} else if dbt.Status != dtmcli.StatusSubmitted {
return fmt.Errorf("current status '%s', cannot sumbmit. %w", dbt.Status, dtmcli.ErrFailure)
}
} else if err != nil {
return err
}
return t.Process(branches)
}

Loading…
Cancel
Save