Fix a typo in the error handling in the browser that caused some errors to be reported to the console only.

This commit is contained in:
Murtuza Zabuawala 2016-09-14 10:33:41 +01:00 committed by Dave Page
parent 071b609a44
commit a67c4fc1dc

View File

@ -1430,10 +1430,10 @@ function(require, $, _, S, Bootstrap, pgAdmin, Alertify, CodeMirror) {
success(); success();
} }
}, },
error: function(jqx, error, status) { error: function(xhr, error, status) {
if ( if (
!Alertify.pgHandleItemError( !Alertify.pgHandleItemError(
xhr, error, message, {item: _i, info: info} xhr, error, status, {item: _i, info: info}
) )
) { ) {
var msg = xhr.responseText, var msg = xhr.responseText,