Guest User

Untitled

a guest
Jul 21st, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. diff --git a/bin/uglifyjs b/bin/uglifyjs
  2. index ad3866f..02f0268 100755
  3. --- a/bin/uglifyjs
  4. +++ b/bin/uglifyjs
  5. @@ -105,7 +105,11 @@ out: while (args.length > 0) {
  6.  
  7. if (filename) {
  8. fs.readFile(filename, "utf8", function(err, text){
  9. - output(squeeze_it(text));
  10. + if(err) {
  11. + sys.debug(err);
  12. + } else {
  13. + output(squeeze_it(text));
  14. + }
  15. });
  16. } else {
  17. var stdin = process.openStdin();
Add Comment
Please, Sign In to add comment