WDYT?

```ruby
def check_errors_for(source)
  source = source.to_s

  if !self.raise_runtime_errors || source.blank? || source =~ URI_REGEXP
    return source
  else
    asset = lookup_asset_for_path(source)

    if asset && asset_needs_precompile?(source, asset.pathname.to_s)
      raise AssetFilteredError.new(source)
    end
  end
end
```