Exit codes
| Code | Constant | Meaning | When |
|---|---|---|---|
| 0 | OK | ok | |
| 1 | RENDER_FAILED | render failed | |
| 2 | USAGE | usage | |
| 3 | DATA_INVALID | data invalid | |
| 4 | CLI_NOT_FOUND | cli not found | |
| 5 | TEMPLATE_UNREADABLE | template unreadable | |
| 130 | INTERRUPTED | interrupted |
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 $CODEWith --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.