Skip to content

Commit

Permalink
Improve logs
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastijankuzner committed Feb 26, 2024
1 parent 01481bd commit bd5c9c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/bootstrap/source/bootstrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export class Bootstrapper {
const commitState = this.commitStateFactory(commit);
const result = await this.blockProcessor.process(commitState);
if (result === false) {
throw new Error(`Cannot process block`);
throw new Error(`Block is not processed.`);
}
await this.blockProcessor.commit(commitState);
} catch (error) {
Expand Down
2 changes: 1 addition & 1 deletion packages/processor/source/block-processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class BlockProcessor implements Contracts.Processor.BlockProcessor {

return true;
} catch (error) {
this.logger.error(`Cannot process block, because: ${error.message}`);
this.logger.error(`Cannot process block because: ${error.message}`);
}

return false;
Expand Down

0 comments on commit bd5c9c7

Please sign in to comment.