Browse Source

Improve output regarding a stray error code.

master
poikilos 2 years ago
parent
commit
91d97d710e
  1. 6
      utilities/lmk-run

6
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 $PRE_CMD perl mtcompile-program.pl build --$LMK_MODE $APP_ARG
code=$? code=$?
if [ $code -ne 0 ]; then 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 exit 1
fi fi
else else

Loading…
Cancel
Save