From bc3fa78e8cedfda4cc0eb7aa7bc7b00c5e860650 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Tue, 9 May 2017 16:08:04 +0800 Subject: [PATCH] mention `minify().error` --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a665c06d3a..52c44ccd99 100644 --- a/README.md +++ b/README.md @@ -596,7 +596,8 @@ performs all the steps in a configurable manner. Example: ```javascript var result = UglifyJS.minify("var b = function() {};"); -console.log(result.code); // minified output +console.log(result.code); // minified output +console.log(result.error); // runtime error ``` You can also compress multiple files: