Update errorHandlers.js #327
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue