mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Display relevant error messages when access is denied creating a schema. Fixes #2094
This commit is contained in:
parent
2f17ecba76
commit
5fd3a7dd3d
@ -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,
|
||||
|
@ -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');
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user