Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #5125 from LiskHQ/5120-fix_error_message
Browse files Browse the repository at this point in the history
Fix error message - Closes #5120
  • Loading branch information
shuse2 authored Apr 8, 2020
2 parents 9038ab4 + 11806eb commit 096fa58
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion framework/src/application/node/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ module.exports = class Node {
this.options.forging.waitThreshold >= this.options.constants.blockTime
) {
throw Error(
`app.node.forging.waitThreshold=${this.options.forging.waitThreshold} is greater or equal to app.genesisConfig.blockTime=${this.options.constants.blockTime}. It impacts the forging and propagation of blocks. Please use a smaller value for modules.chain.forging.waitThreshold`,
`forging.waitThreshold=${this.options.forging.waitThreshold} is greater or equal to genesisConfig.blockTime=${this.options.constants.blockTime}. It impacts the forging and propagation of blocks. Please use a smaller value for forging.waitThreshold`,
);
}

Expand Down
4 changes: 2 additions & 2 deletions framework/test/jest/unit/specs/application/node/node.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ describe('Node', () => {
expect(node.logger.fatal).toHaveBeenCalledWith(
expect.objectContaining({
message: expect.stringContaining(
'app.node.forging.waitThreshold=5 is greater or equal to app.genesisConfig.blockTime=4',
'forging.waitThreshold=5 is greater or equal to genesisConfig.blockTime=4',
),
}),
'Failed to initialization node',
Expand Down Expand Up @@ -266,7 +266,7 @@ describe('Node', () => {
expect(node.logger.fatal).toHaveBeenCalledWith(
expect.objectContaining({
message: expect.stringContaining(
'app.node.forging.waitThreshold=5 is greater or equal to app.genesisConfig.blockTime=5',
'forging.waitThreshold=5 is greater or equal to genesisConfig.blockTime=5',
),
}),
'Failed to initialization node',
Expand Down

0 comments on commit 096fa58

Please sign in to comment.