From a30d43313c00afd8af78edcd3e6710c8f844c4b5 Mon Sep 17 00:00:00 2001 From: Eugene Kuzmenko Date: Wed, 5 Apr 2017 16:32:22 +0200 Subject: [PATCH] [fixed] `JS.typecheck` to disregard the contents of stderr when executing the flow typechecker, because it prints errors to stdout --- src/JS.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/JS.js b/src/JS.js index 19b195f..9b39f2d 100644 --- a/src/JS.js +++ b/src/JS.js @@ -78,10 +78,7 @@ export class JS { if (error) { return logError(error); } - flow.run((flowErr, stdout) => { - if (flowErr) { - return logError(flowErr); - } + flow.run((_, stdout) => { if (!JSON.parse(stdout).passed) { return flow.run(noop, [], {stdio: 'inherit'}); }