Added Sprockets logger and now log asset pipeline compilation exceptions
This commit is contained in:
parent
5ff1a9d255
commit
b65a3edaa2
@ -155,6 +155,9 @@ module Jasmine::Headless
|
||||
|
||||
end
|
||||
|
||||
@sprockets_environment.logger = Logger.new(STDOUT)
|
||||
@sprockets_environment.logger.level = Logger::WARN
|
||||
|
||||
@sprockets_environment
|
||||
end
|
||||
|
||||
@ -291,7 +294,12 @@ module Jasmine::Headless
|
||||
end
|
||||
|
||||
def add_path(path, type = nil)
|
||||
begin
|
||||
asset = sprockets_environment.find_asset(path)
|
||||
rescue => e
|
||||
sprockets_environment.logger.error "#{e.message} (#{e.class})"
|
||||
raise e
|
||||
end
|
||||
|
||||
@required_files << asset
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user