Skip to content

Commit

Permalink
feat: add debug info if not correct number of parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
lpatiny committed Jun 5, 2022
1 parent e40bbfb commit 5b039ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser/parseParameters.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ module.exports = function parseParameters(buffer, options = {}) {
numberParameters !== deviceInformation.numberLogParameters
) {
throw new Error(
'The number of parameters is not equal to the one described in the deviceInformation',
`The number of parameters is not equal to the one described in the deviceInformation. ${deviceInformation.numberParameters} != ${deviceInformation.numberLogParameters}`,
);
}

Expand Down

0 comments on commit 5b039ed

Please sign in to comment.