CDiagnostics::HasErrors

Just errors (no info or warnings)