diff --git a/src/commands/protocols/publish/receiver/handle-store-request-command.js b/src/commands/protocols/publish/receiver/handle-store-request-command.js index 4332b929d2..8b2f56f463 100644 --- a/src/commands/protocols/publish/receiver/handle-store-request-command.js +++ b/src/commands/protocols/publish/receiver/handle-store-request-command.js @@ -24,7 +24,9 @@ class HandleStoreRequestCommand extends HandleProtocolMessageCommand { await this.operationIdService.getCachedOperationIdData(operationId); if (storeInitAssertionId !== assertionId) { - throw Error('Store request assertion id does not match store init assertion id'); + throw Error( + `Store request assertion id ${assertionId} does not match store init assertion id ${storeInitAssertionId}`, + ); } await this.operationIdService.updateOperationIdStatus( diff --git a/src/service/get-service.js b/src/service/get-service.js index bb9c231d3d..adc096a795 100644 --- a/src/service/get-service.js +++ b/src/service/get-service.js @@ -81,14 +81,12 @@ class GetService extends OperationService { this.logger.debug( `Assertion: ${assertionGraphName} for operationId: ${operationId} ${ - nquads ? '' : 'not' + nquads.length ? '' : 'not' } found in local database.`, ); - if (nquads) { - this.logger.debug( - `Number of n-quads retrieved from the database : ${nquads.length ?? 0}`, - ); + if (nquads.length) { + this.logger.debug(`Number of n-quads retrieved from the database : ${nquads.length}`); } return nquads;