Add command when an error occurs to aid debugging.