Enable logging of “bad” firewall rules

I’ve been exploring more complex firewall configuration via extraCommands and extraStopCommands. Occasionally I make a mistake and the firewall configuration fails with with a vague message like:

firewall-reload[…]: iptables: Bad rule (does a matching rule exist in that chain?).

It’s annoying to have to guess which rule actually caused the problem. Is there a way to make that show up in the logs?