From 91d97d710e8616782c194fc80e21a40546a94e34 Mon Sep 17 00:00:00 2001 From: poikilos <7557867+poikilos@users.noreply.github.com> Date: Sun, 20 Nov 2022 20:22:26 -0500 Subject: [PATCH] Improve output regarding a stray error code. --- utilities/lmk-run | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/utilities/lmk-run b/utilities/lmk-run index 46005d8..1ad0eb0 100755 --- a/utilities/lmk-run +++ b/utilities/lmk-run @@ -149,7 +149,11 @@ if [ ! -f minetest/bin/$EXE_NAME ]; then $PRE_CMD perl mtcompile-program.pl build --$LMK_MODE $APP_ARG code=$? if [ $code -ne 0 ]; then - >&2 echo "[lmk-run] Error: '$PRE_CMD perl mtcompile-program.pl build --$LMK_MODE $APP_ARG' failed in `pwd` with code $code." + extra_msg="" + if [ -f "minetest/bin/$EXE_NAME" ]; then + extra_msg=", but minetest/bin/$EXE_NAME exists, so you can probably run lmk-run again and it will probably run (after syncing to the tmp world as usual)." + fi + >&2 echo "[lmk-run] Error: '$PRE_CMD perl mtcompile-program.pl build --$LMK_MODE $APP_ARG' failed in `pwd` with code $code" exit 1 fi else