diff --git a/plugins/c9.error/error_handler.js b/plugins/c9.error/error_handler.js index bf75d299..f2b8024a 100644 --- a/plugins/c9.error/error_handler.js +++ b/plugins/c9.error/error_handler.js @@ -109,7 +109,7 @@ function plugin(options, imports, register) { if (isDev(options.mode)) stack = err.stack || err.message || err.toString(); - + var accept = req.headers.accept || ''; if (/json/.test(accept)) { @@ -143,7 +143,7 @@ function plugin(options, imports, register) { title: statusCodes[statusCode] || NICE_USER_ERROR_MSG, scope: options.scope || "", showStackTrace: showStackTrace, - stack: stack.split('\n').slice(1), + stack: stack, statusCode: statusCode, error: err.toString() }, next);