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:
committed by
Dave Page
parent
2f17ecba76
commit
5fd3a7dd3d
@@ -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,
|
||||||
|
|||||||
@@ -1153,10 +1153,8 @@ 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
|
||||||
$('.obj_properties').removeClass('show_progress');
|
$('.obj_properties').removeClass('show_progress');
|
||||||
|
|||||||
@@ -1089,10 +1089,8 @@ 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
|
||||||
self.releaseObjects();
|
self.releaseObjects();
|
||||||
|
|||||||
Reference in New Issue
Block a user