Skip to content

Exit codes ​

CodeConstantMeaningWhen
0OKok
1RENDER_FAILEDrender failed
2USAGEusage
3DATA_INVALIDdata invalid
4CLI_NOT_FOUNDcli not found
5TEMPLATE_UNREADABLEtemplate unreadable
130INTERRUPTEDinterrupted

Usage in scripts ​

bash
lakreet-swarm render --template t.ectemplate --data d.csv
CODE=$?

case $CODE in
  0) echo "Success";;
  1) echo "Render failed — check report.json";;
  2) echo "Usage error — run with --help";;
  3) echo "Bad data — run check first";;
  4) echo "Install EffectCraft or set --cli";;
  5) echo "Template corrupt or unreadable";;
  130) echo "Interrupted — resume with --skip-existing";;
  *) echo "Unknown exit code: $CODE";;
esac

exit $CODE

With --fail-fast ​

Exit code 1 on first failure (no retry, no continue).

With --retries ​

Exit code 1 only if all retries exhausted for a row.

Independent project. Not affiliated with the ArtCraft team or the EffectCraft project.