mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
Send error during base.js init as string.
Currently, the error object gets interpreted as an options config object, and the actual error message gets discarded. Casting it to a string preserves the error name and message.
This commit is contained in:
@@ -127,6 +127,6 @@ $(function() {
|
||||
r.newsletter.ui.init()
|
||||
r.cachePoisoning.init()
|
||||
} catch (err) {
|
||||
r.sendError('Error during base.js init', err)
|
||||
r.sendError('Error during base.js init', err.toString());
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user