error msgs improved

This commit is contained in:
Philip Sargent 2023-03-22 23:30:05 +00:00
parent 2332bfdc57
commit 70d6d9eb77

View File

@ -442,6 +442,7 @@ def walletedit(request, path=None):
print(message)
return render(request, "errors/generic.html", {"message": message})
else:
if socket.gethostname() != "expo":
comment = f"on dev machine '{socket.gethostname()}' "
else:
@ -463,9 +464,9 @@ def walletedit(request, path=None):
# This produces return code = 1 if it commits OK
if dr_commit.returncode != 0:
msgdata = (
"Ask a nerd to fix this.\n\n"
"Ask a nerd to fix this.\n\nstderr: "
+ dr_commit.stderr
+ "\n\n"
+ "\n\nstdout: "
+ dr_commit.stdout
+ "\n\nreturn code: "
+ str(dr_commit.returncode)