Merge pull request +13243 from c9/all-raygun-fix-nomessage

make sure to always send an error object to raygun
pull/284/head
Fabian Jakobs 2016-04-06 14:58:26 +02:00
commit 30abaf1c5b
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -84,6 +84,9 @@ function plugin(options, imports, register) {
}
function _sendRequest(raygunClient, err, req) {
if (typeof err == "string")
err = new Error(err);
var parsedUrl = url.parse(req.url, false);
var ip = req.remoteAddress;