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)
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.
Assignee | ||
Comment 1•12 years ago
|
||
Attachment #787757 -
Flags: review?(cade)
Comment 2•12 years ago
|
||
Attachment #787757 -
Flags: review?(cade) → review+
Comment 3•12 years ago
|
||
Commit pushed to master at https://github.com/mozilla/webmaker.org
https://github.com/mozilla/webmaker.org/commit/3ede90df61440084d63bc61450bf5aade9336a14
Bug 903130 - Fix mismatched err vs. error in reportError function.
Assignee | ||
Updated•12 years ago
|
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
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.
Description
•