Skip to content

Commit 7a0a896

Browse files
committed
Rename Errors & Fix Spelling Mistake
1 parent 95da34d commit 7a0a896

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/core/task/Task.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ export class Task extends EventEmitter<ClineEvents> {
358358

359359
await this.providerRef.deref()?.updateTaskHistory(historyItem)
360360
} catch (error) {
361-
console.error("Failed to save cline messages:", error)
361+
console.error("Failed to save Roo messages:", error)
362362
}
363363
}
364364

@@ -380,7 +380,7 @@ export class Task extends EventEmitter<ClineEvents> {
380380
// simply removes the reference to this instance, but the instance is
381381
// still alive until this promise resolves or rejects.)
382382
if (this.abort) {
383-
throw new Error(`[Cline#ask] task ${this.taskId}.${this.instanceId} aborted`)
383+
throw new Error(`[RooCode#ask] task ${this.taskId}.${this.instanceId} aborted`)
384384
}
385385

386386
let askTs: number
@@ -500,7 +500,7 @@ export class Task extends EventEmitter<ClineEvents> {
500500
} = {},
501501
): Promise<undefined> {
502502
if (this.abort) {
503-
throw new Error(`[Cline#say] task ${this.taskId}.${this.instanceId} aborted`)
503+
throw new Error(`[RooCode#say] task ${this.taskId}.${this.instanceId} aborted`)
504504
}
505505

506506
if (partial !== undefined) {
@@ -631,7 +631,7 @@ export class Task extends EventEmitter<ClineEvents> {
631631
} catch (error) {
632632
this.providerRef
633633
.deref()
634-
?.log(`Error failed to add reply from subtast into conversation of parent task, error: ${error}`)
634+
?.log(`Error failed to add reply from subtask into conversation of parent task, error: ${error}`)
635635

636636
throw error
637637
}
@@ -965,7 +965,7 @@ export class Task extends EventEmitter<ClineEvents> {
965965
includeFileDetails: boolean = false,
966966
): Promise<boolean> {
967967
if (this.abort) {
968-
throw new Error(`[Cline#recursivelyMakeClineRequests] task ${this.taskId}.${this.instanceId} aborted`)
968+
throw new Error(`[RooCode#recursivelyMakeRooRequests] task ${this.taskId}.${this.instanceId} aborted`)
969969
}
970970

971971
if (this.consecutiveMistakeCount >= this.consecutiveMistakeLimit) {
@@ -1261,7 +1261,7 @@ export class Task extends EventEmitter<ClineEvents> {
12611261

12621262
// Need to call here in case the stream was aborted.
12631263
if (this.abort || this.abandoned) {
1264-
throw new Error(`[Cline#recursivelyMakeClineRequests] task ${this.taskId}.${this.instanceId} aborted`)
1264+
throw new Error(`[Roo#recursivelyMakeRooRequests] task ${this.taskId}.${this.instanceId} aborted`)
12651265
}
12661266

12671267
this.didCompleteReadingStream = true

0 commit comments

Comments
 (0)