Update errorHandlers.js #327

Merged
ykris45 merged 1 commit from patch-1 into master 2018-01-22 18:51:05 +01:00

View file

@ -7,7 +7,7 @@ module.exports = {
if (error.code === 'ECONNREFUSED') { if (error.code === 'ECONNREFUSED') {
status = 503; status = 503;
message = 'Connection refused. The daemon may not be running.'; message = 'Connection refused. The daemon may not be running.';
// check for errors from the deamon // check for errors from the daemon
} else if (error.response) { } else if (error.response) {
status = error.response.status || 500; status = error.response.status || 500;
if (error.response.data) { if (error.response.data) {