From: Alex Lam S.L Date: Mon, 12 Feb 2018 23:29:39 +0000 (+0800) Subject: report options upon reminify input error (#2911) X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=4f1c12b6fd3b452e5bc851f43b9136a3be70cbb3;p=UglifyJS.git report options upon reminify input error (#2911) --- 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;