Skip to content

Commit b71555c

Browse files
committed
fix: edit error messages
1 parent bbe5d7e commit b71555c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

mamonsu/tools/bootstrap/start.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -193,17 +193,13 @@ def run_deploy():
193193
try:
194194
bootstrap_queries = fill_query_params(CreateSchemaDefaultSQL)
195195
Pooler.query(bootstrap_queries)
196-
# if args.args.verbose:
197-
# sys.stdout.write("\nExecuting query:\n{0}\n".format(sql))
198196
except Exception as e:
199197
sys.stderr.write("Bootstrap execution have exited with an error: {0}\n".format(e))
200198
sys.exit(2)
201199

202200
try:
203201
bootstrap_extension_queries = fill_query_params(CreateSchemaExtensionSQL)
204202
Pooler.query(bootstrap_extension_queries)
205-
# if args.args.verbose:
206-
# sys.stdout.write("\nExecuting query:\n{0}\n".format(sql))
207203
except Exception as e:
208204
sys.stderr.write(
209205
"Bootstrap failed to create the function which required pg_buffercache extension.\n"
@@ -217,15 +213,15 @@ def run_deploy():
217213

218214
except Exception as e:
219215
sys.stderr.write("Error: \n {0}\n".format(e))
220-
sys.stderr.write("Please check user rights and rerun bootstrap: \n {0}\n".format(e))
216+
sys.stderr.write("Please check mamonsu user permissions and rerun bootstrap.\n")
221217
sys.exit(2)
222218

223219
try:
224220
bootstrap_grant_extension_queries = fill_grant_params(GrantsOnExtensionSchemaSQL, args)
225221
Pooler.query(bootstrap_grant_extension_queries)
226222

227223
except Exception as e:
228-
sys.stderr.write("Bootstrap failed to grant execution command to "
224+
sys.stderr.write("Bootstrap failed to grant execution permission to "
229225
"the function which required pg_buffercache extension.\n")
230226
sys.stderr.write("Error: \n {0}\n".format(e))
231227

0 commit comments

Comments
 (0)