|
|
@@ -3257,9 +3257,10 @@ export class Task extends EventEmitter<TaskEvents> implements TaskLike {
|
|
|
// Determine cancellation reason
|
|
|
const cancelReason: ClineApiReqCancelReason = this.abort ? "user_cancelled" : "streaming_failed"
|
|
|
|
|
|
+ const rawErrorMessage = error.message ?? JSON.stringify(serializeError(error), null, 2)
|
|
|
const streamingFailedMessage = this.abort
|
|
|
? undefined
|
|
|
- : (error.message ?? JSON.stringify(serializeError(error), null, 2))
|
|
|
+ : `${t("common:interruption.streamTerminatedByProvider")}: ${rawErrorMessage}`
|
|
|
|
|
|
// Clean up partial state
|
|
|
await abortStream(cancelReason, streamingFailedMessage)
|