This commit is contained in:
parent
0cdf85541c
commit
3750ec109f
|
@ -2,7 +2,7 @@ debug: false
|
|||
log: true
|
||||
dryPrint: false
|
||||
keepFile: false
|
||||
serverId: 1
|
||||
serverId: null
|
||||
concurrency: 4
|
||||
reconnectTimeout: 10
|
||||
refreshRate: 1000
|
||||
|
|
|
@ -262,10 +262,13 @@ class PrintServer {
|
|||
break;
|
||||
default:
|
||||
try {
|
||||
if (err.code === 'ERR_BAD_REQUEST') {
|
||||
const resMessage = JSON.parse(res.data).error.message;
|
||||
const resErr = new Error(`${err.message}: ${resMessage}`);
|
||||
resErr.stack = err.stack;
|
||||
throw resErr;
|
||||
} else
|
||||
throw err;
|
||||
} catch (err) {
|
||||
throw err;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue