Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gustaveWPM committed May 17, 2023
1 parent 41276dc commit 435f12a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deeplDriver/DeeplDriver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function tryToValidateTextArgument(originalInput: DeeplDriverInputType) {
return new Error(
`Too big string! The maximum length of a DeepL text request is: ${DEEPL_API_MAX_DATA_CHUNK_SIZE}\n` +
`But you tried to send a string with a length of: ${len}. (There are ${excess} character${
excess > 1 && "s"
excess > 1 ? "s" : ""
} in excess.)\nSend it properly as an array or an object to the DeepL Driver, without any string bigger than ${DEEPL_API_MAX_DATA_CHUNK_SIZE} characters.\n\n` +
`Concerned string: "${str}"`
);
Expand Down

0 comments on commit 435f12a

Please sign in to comment.