vendor/bundle/ruby/2.3.0/gems/sprockets_better_errors-0.0.4/lib/sprockets_better_errors/sprockets_rails_helper.rb
# Raise errors when source does not exist or is not in the precomiled list
Raise errors when source does not exist or is not in the precomiled list
Raise errors when source does not exist or is not in the precomiled list
def check_errors_for(source)
      return source unless Sprockets::Rails::Helper.raise_asset_errors
      return source if ["all", "defaults"].include?(source.to_s)
      return ""     if source.blank?
      return source if source =~ URI_REGEXP
      asset = lookup_asset_for_path(source)
      raise AssetNotPresentError.new(source) if asset.blank?
      raise AssetFilteredError.new(source)   if asset_needs_precompile?(source, asset.pathname.to_s)
    end
def check_errors_for ( source ) return source unless Sprockets :: Rails :: Helper . raise_asset_errors return source if [ "all" , "defaults" ] . include? ( source . to_s ) return "" if source . blank? return source if source =~ URI_REGEXP asset = lookup_asset_for_path ( source ) raise AssetNotPresentError . new ( source ) if asset . blank? raise AssetFilteredError . new ( source ) if asset_needs_precompile? ( source , asset . pathname . to_s ) end
Raise errors when source does not exist or is not in the precomiled list
Raise errors when source does not exist or is not in the precomiled list
source
<not_specific>