From ca95adb9a7b213455ea919b18c70eef0f2334bd9 Mon Sep 17 00:00:00 2001 From: Tyler Schicke Date: Tue, 28 May 2019 13:46:47 -0400 Subject: Made REPL formatting better --- src/debug/Repl.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 (

{command.command}

-

{JSON.stringify(command.result)}

+
{JSON.stringify(command.result, null, 2)}
); }); -- cgit v1.2.3-70-g09d2