Merge pull request #4017 from mechanarchy/patch-1

Fix SQL Console error messages
This commit is contained in:
zadam 2023-06-12 23:12:35 +02:00 committed by GitHub
commit 41844cf817
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -173,7 +173,7 @@ export default class Entrypoints extends Component {
const resp = await server.post(`sql/execute/${note.noteId}`);
if (!resp.success) {
toastService.showError(`Error occurred while executing SQL query: ${resp.message}`);
toastService.showError(`Error occurred while executing SQL query: ${resp.error}`);
}
await appContext.triggerEvent('sqlQueryResults', {ntxId: ntxId, results: resp.results});