v1.2.0
Error Messages in Reports
StackTrace.report()
now accepts an optional message
var stackframes = [StackFrame(...), StackFrame(...)]
var url = 'https://reporting.yourservice.com/jserror'
var message = 'undefined is not an Object'
StackTrace.report(stackframes, url, message)
Example JSON POSTed:
{
message: 'undefined is not an Object',
stack: [
{functionName: 'fn', fileName: 'file.js', lineNumber: 32, columnNumber: 1},
{functionName: 'fn2', fileName: 'file.js', lineNumber: 543, columnNumber: 32}
]
}