diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/debug/Repl.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/debug/Repl.tsx b/src/debug/Repl.tsx index ef00ed466..01acb0e76 100644 --- a/src/debug/Repl.tsx +++ b/src/debug/Repl.tsx @@ -24,7 +24,7 @@ class Repl extends React.Component { if (result.success) { this.executedCommands.push({ command: this.text, result: result.result }); } else { - this.executedCommands.push({ command: this.text, result: result.error }); + this.executedCommands.push({ command: this.text, result: result.error.message || result.error }); } } this.text = ""; @@ -37,7 +37,7 @@ class Repl extends React.Component { return ( <div style={{ marginTop: "5px" }}> <p>{command.command}</p> - <p>{JSON.stringify(command.result)}</p> + <pre>{JSON.stringify(command.result, null, 2)}</pre> </div> ); }); |