Skip to content
21 changes: 11 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bitfinex/bfx-report",
"version": "5.1.0",
"version": "5.2.0",
"description": "Reporting tool",
"main": "worker.js",
"engines": {
Expand Down Expand Up @@ -41,11 +41,11 @@
},
"devDependencies": {
"@bitfinex/bfx-report-express": "git+https://github.com/bitfinexcom/bfx-report-express.git",
"bfx-api-mock-srv": "git+https://github.com/bitfinexcom/bfx-api-mock-srv.git",
"bfx-api-mock-srv": "2.0.0",
"chai": "4.3.4",
"concurrently": "9.2.1",
"cross-env": "10.1.0",
"grenache-grape": "git+https://github.com/bitfinexcom/grenache-grape.git",
"grenache-grape": "1.0.0",
"mocha": "11.1.0",
"nodemon": "3.1.14",
"standard": "17.0.0",
Expand Down
4 changes: 2 additions & 2 deletions workers/api.service.report.wrk.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,10 @@ class WrkReportServiceApi extends WrkApi {
return
}

this.logger.error(`PROCESSOR:QUEUE: ${err.stack || err}`)
this.logger.error('PROCESSOR:QUEUE:', err)
})
aggregatorQueue.on('error:base', (err) => {
this.logger.error(`AGGREGATOR:QUEUE: ${err.stack || err}`)
this.logger.error('AGGREGATOR:QUEUE:', err)
})
}

Expand Down
14 changes: 13 additions & 1 deletion workers/loc.api/errors/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,17 @@ class PDFBufferUnderElectronCreationError extends BaseError {
}
}

class PDFBufferUnderFrameworkCreationError extends BaseError {
constructor (puppeteerErr) {
const _args = getErrorArgs(
{ data: { puppeteerErr } },
'ERR_PDF_BUFFER_UNDER_FRAMEWORK_HAS_NOT_BEEN_CREATED'
)

super(_args)
}
}

module.exports = {
BaseError,
BadRequestError,
Expand All @@ -213,5 +224,6 @@ module.exports = {
GrcPDFAvailabilityError,
ImplementationError,
WeightedAveragesTimeframeError,
PDFBufferUnderElectronCreationError
PDFBufferUnderElectronCreationError,
PDFBufferUnderFrameworkCreationError
}