Properly report errors when debugging cannot be started. Fixes #3723
parent
9b0889842d
commit
ef68cae1f1
|
@ -18,4 +18,5 @@ Bug fixes
|
||||||
| `Bug #3016 <https://redmine.postgresql.org/issues/3016>`_ - Ensure previous notices are not removed from the Messages tab in the Query Tool if an error occurs during query execution.
|
| `Bug #3016 <https://redmine.postgresql.org/issues/3016>`_ - Ensure previous notices are not removed from the Messages tab in the Query Tool if an error occurs during query execution.
|
||||||
| `Bug #3029 <https://redmine.postgresql.org/issues/3029>`_ - Allow the selection order to be preserved in the Select2 control to fix column ordering in data Import/Export.
|
| `Bug #3029 <https://redmine.postgresql.org/issues/3029>`_ - Allow the selection order to be preserved in the Select2 control to fix column ordering in data Import/Export.
|
||||||
| `Bug #3629 <https://redmine.postgresql.org/issues/3629>`_ - Allow use of 0 (integer) and empty strings as parameters in the debugger.
|
| `Bug #3629 <https://redmine.postgresql.org/issues/3629>`_ - Allow use of 0 (integer) and empty strings as parameters in the debugger.
|
||||||
|
| `Bug #3723 <https://redmine.postgresql.org/issues/3723>`_ - Properly report errors when debugging cannot be started.
|
||||||
| `Bug #3746 <https://redmine.postgresql.org/issues/3746>`_ - Fix dropping of multiple functions/procedures at once.
|
| `Bug #3746 <https://redmine.postgresql.org/issues/3746>`_ - Fix dropping of multiple functions/procedures at once.
|
|
@ -1565,11 +1565,18 @@ define([
|
||||||
controller.poll_result(trans_id);
|
controller.poll_result(trans_id);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.fail(function() {
|
.fail(function(xhr) {
|
||||||
Alertify.alert(
|
try {
|
||||||
gettext('Debugger Error'),
|
var err = JSON.parse(xhr.responseText);
|
||||||
gettext('Error while starting debugging listener.')
|
if (err.success == 0) {
|
||||||
);
|
Alertify.alert(gettext('Debugger Error'), err.errormsg);
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
Alertify.alert(
|
||||||
|
gettext('Debugger Error'),
|
||||||
|
gettext('Error while starting debugging listener.')
|
||||||
|
);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
} else if (trans_id != undefined && debug_type) {
|
} else if (trans_id != undefined && debug_type) {
|
||||||
// Make ajax call to execute the and start the target for execution
|
// Make ajax call to execute the and start the target for execution
|
||||||
|
@ -1586,11 +1593,18 @@ define([
|
||||||
self.messages(trans_id);
|
self.messages(trans_id);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.fail(function() {
|
.fail(function(xhr) {
|
||||||
Alertify.alert(
|
try {
|
||||||
gettext('Debugger Error'),
|
var err = JSON.parse(xhr.responseText);
|
||||||
gettext('Error while starting debugging listener.')
|
if (err.success == 0) {
|
||||||
);
|
Alertify.alert(gettext('Debugger Error'), err.errormsg);
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
Alertify.alert(
|
||||||
|
gettext('Debugger Error'),
|
||||||
|
gettext('Error while starting debugging listener.')
|
||||||
|
);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
} else
|
} else
|
||||||
this.intializePanels();
|
this.intializePanels();
|
||||||
|
|
Loading…
Reference in New Issue