summaryrefslogtreecommitdiffstats
path: root/core/views
diff options
context:
space:
mode:
Diffstat (limited to 'core/views')
-rw-r--r--core/views/survex.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/core/views/survex.py b/core/views/survex.py
index c80c76d..57a8d1a 100644
--- a/core/views/survex.py
+++ b/core/views/survex.py
@@ -223,10 +223,12 @@ class SvxForm(forms.Form):
comment = f"Online survex edit: {self.data['filename']}.svx on dev machine '{socket.gethostname()}' "
only_commit(fname, comment)
+ msg = "SAVED and committed to git (if there were differences)"
# should only call this is something changed
- parse_one_file(self.data["filename"])
-
- return "SAVED and committed to git (if there were differences)"
+ if parse_one_file(self.data["filename"]):
+ return msg
+ else:
+ return msg + "\nBUT PARSING failed. Do a completely new databaseReset."
def Process(self):
print(">>>>....\n....Processing\n")