Skip to content

Commit

Permalink
lsp: rewrite error message
Browse files Browse the repository at this point in the history
  • Loading branch information
joacoc committed Nov 15, 2023
1 parent 1754ba6 commit d4a0c3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clients/lsp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ export default class LspClient {
const parsingError = "Error parsing the statements.";
console.error("[LSP]", (err && (err as any).message));
if (parsingError === (err instanceof Error && err.message)) {
throw new ExtensionError(Errors.parsingFailure, "Syntax errors are present. For more information, please refer to the \"Problems\" tab.");
throw new ExtensionError(Errors.parsingFailure, "Syntax errors present in your query.");
} else {
console.warn("[LSP]", "Using alternative parser, an error raised using the LSP: ", err);
try {
Expand Down

0 comments on commit d4a0c3b

Please sign in to comment.