✏️ Improve error message

This commit is contained in:
Iván Ovejero 2023-01-20 15:50:23 +01:00
parent 3f03b59f0a
commit f1519b34be

View File

@ -143,7 +143,7 @@ function toInt(value: string, extraArgs: Array<number | undefined>) {
const int = parseInt(value.replace(CURRENCY_REGEXP, ''), radix);
if (isNaN(int)) {
throw new ExpressionError.ExpressionExtensionError('cannot convert to int');
throw new ExpressionError.ExpressionExtensionError('cannot convert to integer');
}
return int;