Skip to content

Commit

Permalink
Fixing uncaught exception handler on Windows.
Browse files Browse the repository at this point in the history
The lack of `process.getuid` and `process.getgid` cause it to throw an exception. An exception in the uncaught exception handler is... not good.
  • Loading branch information
domenic committed Apr 11, 2012
1 parent e80c531 commit a32d92b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/winston/exception.js
Expand Up @@ -23,8 +23,8 @@ exception.getAllInfo = function (err) {
exception.getProcessInfo = function () {
return {
pid: process.pid,
uid: process.getuid(),
gid: process.getgid(),
uid: process.getuid ? process.getuid() : null,
gid: process.getgid ? process.getgid() : null,
cwd: process.cwd(),
execPath: process.execPath,
version: process.version,
Expand Down

0 comments on commit a32d92b

Please sign in to comment.