Fix format_exception_only call on batch error.