Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Sprockets::FileNotFound is not raised when requiring an absolute path #196

Closed
jimmycuadra opened this Issue · 1 comment

2 participants

@jimmycuadra

It seems that when you use //= require /filethatdoesntexist, you will not get a Sprockets::FileNotFound error. It behaves as though the directive was simply not there. This is in the context of a Rails app; so far I've been unable to determine whether or not it's a Sprockets issue or a Rails issue, so forgive me if this is in the wrong place.

This came up in the context of an issue on jquery-tmpl-rails if you'd like some context.

@josh

Could you make a sprockets test case for this. I can work on the implementation.

I kind of don't want to, but I guess we should support absolute requires. We need to beef up the error handling so you get an exception if you require something outside one of your load paths.

@josh josh was assigned
@josh josh closed this in b8a7ae2
@josh josh removed their assignment
@josh josh removed their assignment
@josh josh removed their assignment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.