Skip to content

Commit

Permalink
Set default error type to error
Browse files Browse the repository at this point in the history
Signed-off-by: worksofliam <[email protected]>
  • Loading branch information
worksofliam committed Dec 19, 2024
1 parent 49d3b3b commit 8ee076e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/connection/syntaxChecker/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ function niceError(sqlError: SqlCheckError): SqlSyntaxError {
text = text.replace(`&${index+1}`, token);
});

let errorType: SqlErrorType = `none`;
let errorType: SqlErrorType = `error`;
const sqlState = sqlError.ERRORSQLSTATE.substring(0, 2);
if (sqlState in ERROR_STATE_MAP) {
errorType = ERROR_STATE_MAP[sqlState];
Expand Down

0 comments on commit 8ee076e

Please sign in to comment.