From 70d6d9eb7700a576514e7be6d75ed9432ecae049 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Wed, 22 Mar 2023 23:30:05 +0000 Subject: [PATCH] error msgs improved --- core/views/wallets_edit.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/views/wallets_edit.py b/core/views/wallets_edit.py index 67aab15..5bf0032 100644 --- a/core/views/wallets_edit.py +++ b/core/views/wallets_edit.py @@ -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)