Display relevant error messages when access is denied creating a schema. Fixes #2094

This commit is contained in:
Murtuza Zabuawala 2017-11-20 13:31:03 +00:00 committed by Dave Page
parent 2f17ecba76
commit 5fd3a7dd3d
3 changed files with 5 additions and 10 deletions

View File

@ -580,8 +580,7 @@ It may have been removed by another user.
return make_json_response(
status=410,
success=0,
errormsg=res + '\n' +
'Operation failed while running create statement'
errormsg=res
)
# we need oid to to add object in tree at browser,

View File

@ -1153,10 +1153,8 @@ define(
error: function(m, jqxhr) {
Alertify.pgNotifier(
"error", jqxhr,
S(
gettext("Error saving properties: %s")
).sprintf(jqxhr.statusText).value()
);
gettext("Error saving properties")
);
// Hide progress cursor
$('.obj_properties').removeClass('show_progress');

View File

@ -1089,10 +1089,8 @@ define([
error: function(m, jqxhr) {
alertify.pgNotifier(
"error", jqxhr,
S(
gettext("Error saving properties: %s")
).sprintf(jqxhr.statusText).value()
);
gettext("Error saving properties")
);
// Release wizard objects
self.releaseObjects();