diff --git a/src/script_executor.py b/src/script_executor.py index 8f69e83..115dea5 100644 --- a/src/script_executor.py +++ b/src/script_executor.py @@ -102,6 +102,9 @@ let consoleOutput = []; const console = {{ log: function(...args) {{ consoleOutput.push(args.map(arg => String(arg)).join(' ')); + }}, + error: function(...args) {{ + consoleOutput.push(args.map(arg => String(arg)).join(' ')); }} }}; @@ -225,6 +228,9 @@ let consoleOutput = []; const console = {{ log: function(...args) {{ consoleOutput.push(args.map(arg => String(arg)).join(' ')); + }}, + error: function(...args) {{ + consoleOutput.push(args.map(arg => String(arg)).join(' ')); }} }};