refactor: update diagnostic messages for query validation in missing and null plugins
This commit is contained in:
parent
5165c82f5c
commit
391d75702a
2 changed files with 2 additions and 2 deletions
|
|
@ -20,6 +20,6 @@ language js
|
|||
$fn <: contains `executeTakeFirstOrThrow`
|
||||
},
|
||||
! $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")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,5 +9,5 @@ language js
|
|||
$a <: contains `'!=='`
|
||||
},
|
||||
$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")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue