mirror of
https://github.com/n8n-io/n8n.git
synced 2026-06-04 10:39:23 +02:00
✏️ Improve error message
This commit is contained in:
parent
3f03b59f0a
commit
f1519b34be
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user