dont try to manipulate undefined stacktrace

pull/199/head
Matthijs van Henten 2015-09-23 09:33:49 +00:00
rodzic a31baeafac
commit 3297b9a3a7
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

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