if error without stack is logged add stack of the caller

pull/43/merge
nightwing 2015-05-16 02:51:02 +04:00
rodzic 2f55e03b36
commit a325395a44
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -67,6 +67,8 @@ define(function(require, exports, module) {
console.error(exception);
if (customData)
console.log(customData);
if (!exception.stack)
exception.stack = new Error().stack;
Raygun.send(exception, customData, tags);
}