Improved error message to make it easier for users to understand. #5539

This commit is contained in:
Pravesh Sharma
2022-11-29 18:15:46 +05:30
committed by GitHub
parent 7b96bf857c
commit a824d9dd59
2 changed files with 3 additions and 3 deletions

View File

@@ -69,8 +69,8 @@ export default function SQL({ nodeData, node, did, ...props }) {
})
.catch((e) => {
Notify.alert(
gettext('Failed to retrieve data from the server.'),
gettext(e.message)
gettext('Error'),
gettext(e.response.data.errormsg)
);
// show failed message.
setMsg(gettext('Failed to retrieve data from the server.'));