lib/roda/plugins/assets.rb in roda-3.3.0 vs lib/roda/plugins/assets.rb in roda-3.4.0
- old
+ new
@@ -562,10 +562,12 @@
# Compress the JS using Uglifier, requires javascript runtime
def compress_js_uglifier(content)
begin
require 'uglifier'
rescue => e
+ # :nocov:
raise CompressorNotFound, "#{e.class}: #{e.message}", e.backtrace
+ # :nocov:
end
Uglifier.compile(content)
end