cloudhead/less.js — Issue #463: Problems with errors in imported LESS files
Author: matthewdl
Created: 2011-11-15 00:32:50+00:00
State: open

I'm noticing two major issues with imported sheets and returning errors. They are:

1. Errors are not raised when calling the parser directly in code if the error occurs for an imported sheet. That is, it will raise/return an error for the first sheet, but subsequent errors in imported sheets are not raised. I was able to get around this by altering the code to raise the error in the form of an event, but it would be nice if it would bubble up with an error to the original call. Right now, I think it's just generating some markup, which is strange and not what I need programmatically.

2. In my UI, I was hope to give feedback as to what file caused the error and where. However, the line number returned is not correct. The line counting seems to not be reset, meaning I can't say "Error in Filename: X in Line: Y", because Line Y is not where the error actually is in File X.