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( return make_json_response(
status=410, status=410,
success=0, success=0,
errormsg=res + '\n' + errormsg=res
'Operation failed while running create statement'
) )
# we need oid to to add object in tree at browser, # we need oid to to add object in tree at browser,

View File

@@ -1153,9 +1153,7 @@ define(
error: function(m, jqxhr) { error: function(m, jqxhr) {
Alertify.pgNotifier( Alertify.pgNotifier(
"error", jqxhr, "error", jqxhr,
S( gettext("Error saving properties")
gettext("Error saving properties: %s")
).sprintf(jqxhr.statusText).value()
); );
// Hide progress cursor // Hide progress cursor

View File

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