Skip to content

Commit

Permalink
Print error when failed to encode
Browse files Browse the repository at this point in the history
  • Loading branch information
firtoz committed Jan 11, 2023
1 parent 234ddd6 commit cff6643
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/EncodeLength.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const encodeLength = (input: string): number => {
logMessage(`Encoding error: input:
\`\`\`js
const input = \`${input.replace('\`', '\\`')}\`;
\`\`\``);
\`\`\``, e);
}
return Math.floor((input ?? '').split(' ').length * 2.30);
}
Expand Down

0 comments on commit cff6643

Please sign in to comment.