nlogger
nlogger copied to clipboard
Line number bug when used on node.js for Windows
Hello,
I've just corrected a bug on the line number routine, when running on windows: the drive letter got in the way, and the routine returned the file path instead of the line number. I got around it by using a regex to extract the line number. Haven't tested it on Linux, but should work okay, too.
can you please send how does e.stack looks on windows? I want to avoid try-catch block because they are slow.
Of course! Here you go:
Error: This is an stack trace test
at Object.
As you can see, the great villain here is the drive letter, whose following colon confuses the routine that would pick the line number.
Em 18/03/2012 06:33, Igor Urminček escreveu:
can you please send how does e.stack looks on windows? I want to avoid try-catch block because they are slow.
Reply to this email directly or view it on GitHub: https://github.com/igo/nlogger/pull/10#issuecomment-4560128