Closed jturkel closed 11 years ago
Very fair point. Marking as an enhancement to address.
Just committed an enhancement in v0.12.4 that appends the original error message onto Epoxy's specific error. Encountering an attributes parsing error should now produce:
Uncaught Error parsing bindings: "text:name,toggle:badAttrRef"
>> ReferenceError: badAttrRef is not defined
Errors thrown from applyBindings don't currently return information on why the binding failed which makes it hard to track down errors. For example the current error messages look something like this:
It looks like the exception caught in bindElementToView has the necessary information (in my case marked_for_delete was not defined). I'd love to see an error message like this: