Fix Query Tool error messages for psycopg3 driver.
parent
9abbd30790
commit
b640df5bdd
|
@ -782,7 +782,7 @@ export function ResultSet() {
|
|||
setSelectedRows(new Set());
|
||||
setSelectedColumns(new Set());
|
||||
setLoaderText(gettext('Waiting for the query to complete...'));
|
||||
await rsu.current.startExecution(
|
||||
return await rsu.current.startExecution(
|
||||
query, explainObject,
|
||||
()=>{
|
||||
setColumns([]);
|
||||
|
@ -829,8 +829,8 @@ export function ResultSet() {
|
|||
}
|
||||
);
|
||||
} else {
|
||||
await yesCallback();
|
||||
pollCallback();
|
||||
let goForPoll = await yesCallback();
|
||||
if (goForPoll) pollCallback();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -1635,7 +1635,7 @@ Failed to reset the connection to the server due to following error:
|
|||
# Do not append if error starts with `ERROR:` as most pg related
|
||||
# error starts with `ERROR:`
|
||||
if not errmsg.startswith('ERROR:'):
|
||||
errmsg = gettext('ERROR: ') + errmsg + '\n\n'
|
||||
errmsg = gettext('ERROR: ') + errmsg + ' \n\n'
|
||||
|
||||
if exception_obj.diag.severity is not None \
|
||||
and exception_obj.diag.message_primary is not None:
|
||||
|
|
Loading…
Reference in New Issue