Keep run --wait's 'run ended STATUS' error prefix
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+3
-2
@@ -1472,10 +1472,11 @@ func (a App) finishRun(ctx context.Context, r protocol.Message, o *options, call
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if o.wait && r.RunDetail.Status != "succeeded" {
|
if o.wait && r.RunDetail.Status != "succeeded" {
|
||||||
message := fmt.Sprintf("run %d ended %s", r.RunDetail.ID, r.RunDetail.Status)
|
message := fmt.Sprintf("run ended %s (run %d", r.RunDetail.Status, r.RunDetail.ID)
|
||||||
if note := failureNote(r.RunDetail); note != "" {
|
if note := failureNote(r.RunDetail); note != "" {
|
||||||
message += " (" + note + ")"
|
message += ": " + note
|
||||||
}
|
}
|
||||||
|
message += ")"
|
||||||
if hint := waitingHint(r.RunDetail); hint != "" {
|
if hint := waitingHint(r.RunDetail); hint != "" {
|
||||||
message += "; " + hint
|
message += "; " + hint
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user