From dc1afe2b7c5df958733c3224ce7668a4ea2fcdbd Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 16 Sep 2020 09:55:17 +0200 Subject: [PATCH] wrap only if complex script --- apps/remix-ide/src/app/panels/terminal.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/remix-ide/src/app/panels/terminal.js b/apps/remix-ide/src/app/panels/terminal.js index c9f6fa993c..a3c457ad33 100644 --- a/apps/remix-ide/src/app/panels/terminal.js +++ b/apps/remix-ide/src/app/panels/terminal.js @@ -481,6 +481,7 @@ class Terminal extends Plugin { return self._view.el function wrapScript (script) { + if (script.startsWith('remix.')) return script return ` try { const ret = ${script}; @@ -490,7 +491,7 @@ class Terminal extends Plugin { console.log(ret) } } catch (e) { - console.log(error) + console.log(e.message) } ` }