Log the error type