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:
Mario Zechner 2025-10-09 20:53:32 +02:00
parent 8747e01c31
commit 38aaaee968

View file

@ -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");
}
}
};