Closed Bug 903130 Opened 12 years ago Closed 12 years ago

Fix mismatched err vs. error in reportError function

Categories

(Webmaker Graveyard :: webmaker.org, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: humph, Assigned: humph)

Details

Attachments

(1 file)

function reportError( error, isFatal ) { if ( !graylogHost ) { return; } log( "[" + ( isFatal ? "CRASH" : "ERROR" ) + "] webmaker.org error", err.message, { level: isFatal ? LOG_CRIT : LOG_ERR, stack: err.stack, _serverVersion: require( './package.json' ).version, _fullStack: err.stack } ); } This is mixing err and error, and will crash when it tries to log to the server.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
On prod now.
Status: RESOLVED → VERIFIED
Attachment mime type: text/plain → text/x-github-pull-request
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: