mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 18:03:50 +00:00
Remove debug console.log statements causing duplicate error messages
- console.log('Reporting execution error:', finalError) was logging the error
- This caused duplicate error message in output
- Removed all debug console.log statements from window.complete()
- Error is only shown via execution-error message now
This commit is contained in:
parent
8747e01c31
commit
38aaaee968
1 changed files with 0 additions and 4 deletions
|
|
@ -128,19 +128,15 @@ export class ConsoleRuntimeProvider implements SandboxRuntimeProvider {
|
|||
|
||||
if ((window as any).sendRuntimeMessage) {
|
||||
if (finalError) {
|
||||
console.log("Reporting execution error:", finalError);
|
||||
await (window as any).sendRuntimeMessage({
|
||||
type: "execution-error",
|
||||
error: finalError,
|
||||
});
|
||||
console.log("Execution completed");
|
||||
} else {
|
||||
console.log("Reporting execution complete");
|
||||
await (window as any).sendRuntimeMessage({
|
||||
type: "execution-complete",
|
||||
returnValue,
|
||||
});
|
||||
console.log("Execution completed");
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue