refs #5368 Minor changes
gitea/printnatura/pipeline/head This commit looks good Details

This commit is contained in:
Guillermo Bonet 2023-04-26 13:43:47 +02:00
parent 0cdf85541c
commit 3750ec109f
2 changed files with 301 additions and 298 deletions

View File

@ -2,7 +2,7 @@ debug: false
log: true
dryPrint: false
keepFile: false
serverId: 1
serverId: null
concurrency: 4
reconnectTimeout: 10
refreshRate: 1000

View File

@ -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;
}