mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fix error highlighting in the query tool. Fixes #2291
This commit is contained in:
parent
a4fd313371
commit
efb077b7f7
@ -481,8 +481,10 @@ def poll(trans_id):
|
||||
# Check the transaction and connection status
|
||||
status, error_msg, conn, trans_obj, session_obj = check_transaction_status(trans_id)
|
||||
if status and conn is not None and session_obj is not None:
|
||||
status, result = conn.poll()
|
||||
if status == ASYNC_OK:
|
||||
status, result = conn.poll(formatted_exception_msg=True)
|
||||
if not status:
|
||||
return internal_server_error(result)
|
||||
elif status == ASYNC_OK:
|
||||
status = 'Success'
|
||||
rows_affected = conn.rows_affected()
|
||||
|
||||
|
@ -1843,6 +1843,8 @@ define(
|
||||
msg = e.responseJSON.errormsg;
|
||||
|
||||
self.update_msg_history(false, msg);
|
||||
// Highlight the error in the sql panel
|
||||
self._highlight_error(msg);
|
||||
}
|
||||
});
|
||||
}, self.POLL_FALLBACK_TIME());
|
||||
|
Loading…
Reference in New Issue
Block a user