If we pass an undefined value as the first argument to haml.render, we get the following error:
TypeError: (Haml): Cannot call method 'trim' of undefined
at tokenize (/Users/redsquirrel/Projects/apprentice.us.com/vendor/haml/0.4.0/lib/haml.js:177:17)
at <error: TypeError: Cannot read property '0' of undefined>
at /Users/redsquirrel/Projects/apprentice.us.com/vendor/haml/0.4.0/lib/haml.js:624:18
Obviously, we shouldn't be passing an undefined value there, but a more revealing error would make debugging easier. :)
If we pass an undefined value as the first argument to haml.render, we get the following error:
TypeError: (Haml): Cannot call method 'trim' of undefined at tokenize (/Users/redsquirrel/Projects/apprentice.us.com/vendor/haml/0.4.0/lib/haml.js:177:17) at <error: TypeError: Cannot read property '0' of undefined> at /Users/redsquirrel/Projects/apprentice.us.com/vendor/haml/0.4.0/lib/haml.js:624:18
Obviously, we shouldn't be passing an undefined value there, but a more revealing error would make debugging easier. :)