mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-21 04:00:10 +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 ((window as any).sendRuntimeMessage) {
|
||||||
if (finalError) {
|
if (finalError) {
|
||||||
console.log("Reporting execution error:", finalError);
|
|
||||||
await (window as any).sendRuntimeMessage({
|
await (window as any).sendRuntimeMessage({
|
||||||
type: "execution-error",
|
type: "execution-error",
|
||||||
error: finalError,
|
error: finalError,
|
||||||
});
|
});
|
||||||
console.log("Execution completed");
|
|
||||||
} else {
|
} else {
|
||||||
console.log("Reporting execution complete");
|
|
||||||
await (window as any).sendRuntimeMessage({
|
await (window as any).sendRuntimeMessage({
|
||||||
type: "execution-complete",
|
type: "execution-complete",
|
||||||
returnValue,
|
returnValue,
|
||||||
});
|
});
|
||||||
console.log("Execution completed");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue