forked from expo/troggle
error msgs improved
This commit is contained in:
parent
2332bfdc57
commit
70d6d9eb77
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user