gruntjs / grunt-contrib-pug

Compile Pug templates.
http://gruntjs.com/
MIT License
328 stars 77 forks source link

new Error().lineNumber does not return line number #159

Closed wardoost closed 8 years ago

wardoost commented 8 years ago

I have several mixins that use console.log() to generate warnings but I have no good way to trace the current line number and/or current file. Does anyone know how I best do this?

shinnn commented 8 years ago

https://github.com/gruntjs/grunt-contrib-pug/issues/136#issuecomment-77305674