Skip to content

Commit

Permalink
Merge pull request #251 from BalticAmadeus/234-show-info-message-afte…
Browse files Browse the repository at this point in the history
…r-successful-createupdatedelete-operation

CRU operations show error/information messages
  • Loading branch information
Knijus authored Feb 20, 2023
2 parents 9aefe6d + 9997bd2 commit 5377746
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/webview/QueryEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,15 @@ export class QueryEditor {
data: oe,
};
this.logger.log("data:", obj);
if (obj.data.description != null){
if (obj.data.description == "")
vscode.window.showErrorMessage("Database Error: Trigger canceled action");
else
vscode.window.showErrorMessage("Database Error: " + obj.data.description);
}
else{
vscode.window.showInformationMessage("Action was successful");
}
this.panel?.webview.postMessage(obj);
}

Expand Down

0 comments on commit 5377746

Please sign in to comment.