Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Also catch Errno::EPIPE in uglify and gzip
  • Loading branch information
meh committed Jan 29, 2014
1 parent 58a92e6 commit 6ff4d55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/opal/util.rb
Expand Up @@ -9,7 +9,7 @@ def uglify(str)
i.close_write
return i.read
end
rescue Errno::ENOENT
rescue Errno::ENOENT, Errno::EPIPE
$stderr.puts '"uglifyjs" command not found (install with: "npm install -g uglify-js")'
nil
end
Expand All @@ -21,7 +21,7 @@ def gzip(str)
i.close_write
return i.read
end
rescue Errno::ENOENT
rescue Errno::ENOENT, Errno::EPIPE
$stderr.puts '"gzip" command not found, it is required to produce the .gz version'
nil
end
Expand Down

0 comments on commit 6ff4d55

Please sign in to comment.