]> git.plutz.net Git - shellwiki/commitdiff
bugfix: set error message on log failure
authorPaul Hänsch <paul@plutz.net>
Thu, 21 Sep 2023 19:49:01 +0000 (21:49 +0200)
committerPaul Hänsch <paul@plutz.net>
Thu, 21 Sep 2023 19:49:01 +0000 (21:49 +0200)
handlers/60_edit.sh

index 8bbf1f2d30d0c66b49019ae944a38f25b0cd101a..b55a3440bf91ba77e27ccca3aab0e7b9e28b2642 100755 (executable)
@@ -39,7 +39,7 @@ elif [ "$edit_action" = update ]; then
     POST pagetext >"$edit_file"
     S_RELEASE "$edit_file"
   else
-    export ERRMSG="ERR_NOLOCK"
+    export ERROR_MSG="Unable to lock page for editing"
     REDIRECT "${_BASE}${PATH_INFO%\[edit\]}/[edit]"
   fi