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:
Matt Lee
2015-09-08 16:42:44 -07:00
parent c71376e56e
commit 7d21f06f30

View File

@@ -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());
}
})