Add error code debug output.