From 482a572e6a6450a20115eb621ef4e8e39ab6bc11 Mon Sep 17 00:00:00 2001 From: Tan Li Hau Date: Sun, 6 Oct 2019 13:30:10 +0800 Subject: [PATCH] show generated output if the error message does not match --- test/runtime/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/runtime/index.js b/test/runtime/index.js index 880e316e0c..f23379cd88 100644 --- a/test/runtime/index.js +++ b/test/runtime/index.js @@ -192,10 +192,12 @@ describe("runtime", () => { assert.equal(config.error, err.message); } } else { - failed.add(dir); - showOutput(cwd, compileOptions, compile); // eslint-disable-line no-console throw err; } + }).catch(err => { + failed.add(dir); + showOutput(cwd, compileOptions, compile); // eslint-disable-line no-console + throw err; }) .then(() => { if (config.show) {