From 7a0a896473fd7ee192712396fa823627d0fbb847 Mon Sep 17 00:00:00 2001 From: xyOz Date: Fri, 16 May 2025 01:52:21 +0100 Subject: [PATCH 1/2] Rename Errors & Fix Spelling Mistake --- src/core/task/Task.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/core/task/Task.ts b/src/core/task/Task.ts index 1b63ba9f4cc..a8bf4db6918 100644 --- a/src/core/task/Task.ts +++ b/src/core/task/Task.ts @@ -358,7 +358,7 @@ export class Task extends EventEmitter { await this.providerRef.deref()?.updateTaskHistory(historyItem) } catch (error) { - console.error("Failed to save cline messages:", error) + console.error("Failed to save Roo messages:", error) } } @@ -380,7 +380,7 @@ export class Task extends EventEmitter { // simply removes the reference to this instance, but the instance is // still alive until this promise resolves or rejects.) if (this.abort) { - throw new Error(`[Cline#ask] task ${this.taskId}.${this.instanceId} aborted`) + throw new Error(`[RooCode#ask] task ${this.taskId}.${this.instanceId} aborted`) } let askTs: number @@ -500,7 +500,7 @@ export class Task extends EventEmitter { } = {}, ): Promise { if (this.abort) { - throw new Error(`[Cline#say] task ${this.taskId}.${this.instanceId} aborted`) + throw new Error(`[RooCode#say] task ${this.taskId}.${this.instanceId} aborted`) } if (partial !== undefined) { @@ -631,7 +631,7 @@ export class Task extends EventEmitter { } catch (error) { this.providerRef .deref() - ?.log(`Error failed to add reply from subtast into conversation of parent task, error: ${error}`) + ?.log(`Error failed to add reply from subtask into conversation of parent task, error: ${error}`) throw error } @@ -965,7 +965,7 @@ export class Task extends EventEmitter { includeFileDetails: boolean = false, ): Promise { if (this.abort) { - throw new Error(`[Cline#recursivelyMakeClineRequests] task ${this.taskId}.${this.instanceId} aborted`) + throw new Error(`[RooCode#recursivelyMakeRooRequests] task ${this.taskId}.${this.instanceId} aborted`) } if (this.consecutiveMistakeCount >= this.consecutiveMistakeLimit) { @@ -1261,7 +1261,7 @@ export class Task extends EventEmitter { // Need to call here in case the stream was aborted. if (this.abort || this.abandoned) { - throw new Error(`[Cline#recursivelyMakeClineRequests] task ${this.taskId}.${this.instanceId} aborted`) + throw new Error(`[Roo#recursivelyMakeRooRequests] task ${this.taskId}.${this.instanceId} aborted`) } this.didCompleteReadingStream = true From cad4d465ac60318518deefd2a93ef91377815be2 Mon Sep 17 00:00:00 2001 From: Matt Rubens Date: Sat, 17 May 2025 13:48:52 -0700 Subject: [PATCH 2/2] Update src/core/task/Task.ts Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com> --- src/core/task/Task.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/task/Task.ts b/src/core/task/Task.ts index c7d7b433e51..9a23272d288 100644 --- a/src/core/task/Task.ts +++ b/src/core/task/Task.ts @@ -1253,7 +1253,7 @@ export class Task extends EventEmitter { // Need to call here in case the stream was aborted. if (this.abort || this.abandoned) { - throw new Error(`[Roo#recursivelyMakeRooRequests] task ${this.taskId}.${this.instanceId} aborted`) + throw new Error(`[RooCode#recursivelyMakeRooRequests] task ${this.taskId}.${this.instanceId} aborted`) } this.didCompleteReadingStream = true