make it fail on non-zero exit codes instead

This commit is contained in:
Tomate0613 2026-02-11 16:52:48 +01:00
parent 4309173c08
commit 3d468a80ce

View file

@ -17,12 +17,7 @@ self: {
${cfg.settings} ${cfg.settings}
EOF EOF
output=$(${cfg.package}/bin/mango -c "$out" -p 2>&1 || true) ${cfg.package}/bin/mango -c "$out" -p || exit 1
if echo "$output" | grep -Fq '[ERROR]:'; then
echo "$output"
exit 1
fi
''; '';
in { in {
options = { options = {