refactor: update diagnostic messages for query validation in missing and null plugins

This commit is contained in:
Marco Pedone 2025-12-19 15:57:40 +01:00
parent 5165c82f5c
commit 391d75702a
2 changed files with 2 additions and 2 deletions

View file

@ -20,6 +20,6 @@ language js
$fn <: contains `executeTakeFirstOrThrow` $fn <: contains `executeTakeFirstOrThrow`
}, },
! $fn <: contains `where`, ! $fn <: contains `where`,
register_diagnostic(span=$fn, message="where or delete statements must contain where()", severity="error") register_diagnostic(span=$fn, message="update or delete statements must contain where()", severity="error")
} }
} }

View file

@ -9,5 +9,5 @@ language js
$a <: contains `'!=='` $a <: contains `'!=='`
}, },
$a <: contains `null`, $a <: contains `null`,
register_diagnostic(span=$a, message=$a, severity="error") register_diagnostic(span=$a, message="Comparisons to null using '=' or '==' are not allowed. Use 'is' or 'is not' instead.", severity="error")
} }