From 4f1c12b6fd3b452e5bc851f43b9136a3be70cbb3 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Tue, 13 Feb 2018 07:29:39 +0800 Subject: [PATCH] report options upon reminify input error (#2911) --- test/run-tests.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/run-tests.js b/test/run-tests.js index 5dcacd87..ae170e3f 100755 --- a/test/run-tests.js +++ b/test/run-tests.js @@ -372,8 +372,9 @@ function reminify(orig_options, input_code, input_formatted, expect_stdout) { var options_formatted = JSON.stringify(options, null, 4); var result = U.minify(input_code, options); if (result.error) { - log("!!! failed input reminify\n---INPUT---\n{input}\n--ERROR---\n{error}\n\n", { + log("!!! failed input reminify\n---INPUT---\n{input}\n---OPTIONS---\n{options}\n--ERROR---\n{error}\n\n", { input: input_formatted, + options: options_formatted, error: result.error, }); return false; -- 2.34.1