aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2018-02-13 07:29:39 +0800
committerGitHub <noreply@github.com>2018-02-13 07:29:39 +0800
commit4f1c12b6fd3b452e5bc851f43b9136a3be70cbb3 (patch)
treefb7756a3fccaa51b60854b68c395f178cbf9d925 /test
parentd8e0e34354ea8c93a321210ba8a01d1a88a1dbc7 (diff)
downloadtracifyjs-4f1c12b6fd3b452e5bc851f43b9136a3be70cbb3.tar.gz
tracifyjs-4f1c12b6fd3b452e5bc851f43b9136a3be70cbb3.zip
report options upon reminify input error (#2911)
Diffstat (limited to 'test')
-rwxr-xr-xtest/run-tests.js3
1 files changed, 2 insertions, 1 deletions
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;