-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Calling render without file or data produces a cryptic error message #924
Comments
Hi @callumlocke, node-sass@3.x (master) doesn't support We should provide a more informative error message. |
But contents works fine for me. (Just not with an empty string.) |
Interesting... can you please supply an example of how you're using node-sass with |
No wait, maybe I am using data not contents. Not at a computer right now. I probably just entered the issue wrong. Sorry for confusion. The point is, whatever property name I'm using, it works fine - except for when the value is an empty string, in which case I get the obscure error message. |
Thanks for the clarification, I do think we need a better error message in this case. |
Empty braces cause this as well:
|
So there's two separate problems:
|
No, no need to, thanks. This is actually the same issue. |
Should be fixed by #956. Now I think that the behaviour with |
It still errors out for me if I try to render/import a file that happens to be empty. |
@callumlocke the patch has not yet been merged. It'll be in the next release of node-sass. |
Would I also wonder what we should do in case of async functions: show we call a callback and emulate a |
Intended to fix sass#924
Intended to fix sass#924
#956 should be ready for testing. |
Intended to fix sass#924
Intended to fix sass#924
Yes. It's exponentially better.
You suggestion sounds legit. |
…lation Fix selector parsing to allow hyphen after other tokens
On master, and doing
sass.render({contents: input}, callback)
.When
input
is an empty string, I get the errorFile context created without an input path
.The text was updated successfully, but these errors were encountered: