module Sprockets::Resolve
def resolve!(path, options = {})
Public: Same as resolve() but raises a FileNotFound exception instead of
def resolve!(path, options = {}) uri, deps = resolve(path, options.merge(compat: false)) unless uri message = "couldn't find file '#{path}'" if relative_path?(path) && options[:base_path] load_path, _ = paths_split(config[:paths], options[:base_path]) message << " under '#{load_path}'" end message << " with type '#{options[:accept]}'" if options[:accept] raise FileNotFound, message end return uri, deps end