report options upon reminify input error (#2911)
authorAlex Lam S.L <alexlamsl@gmail.com>
Mon, 12 Feb 2018 23:29:39 +0000 (07:29 +0800)
committerGitHub <noreply@github.com>
Mon, 12 Feb 2018 23:29:39 +0000 (07:29 +0800)
test/run-tests.js

index 5dcacd8..ae170e3 100755 (executable)
@@ -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;