Also log the error object itself in this case.