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