mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2026-07-12 06:11:14 -04:00
fix: Found and fix review mistakes
This commit is contained in:
@@ -43,14 +43,14 @@ struct ErrorInfo
|
||||
return text.contains(QLatin1String(needle));
|
||||
};
|
||||
|
||||
if (contains("401") || contains("403") || contains("unauthorized")
|
||||
|| contains("forbidden") || contains("api key") || contains("apikey")
|
||||
|| contains("authentication") || contains("invalid token"))
|
||||
if (contains("401") || contains("403") || contains("unauthorized") || contains("forbidden")
|
||||
|| contains("api key") || contains("apikey") || contains("authentication")
|
||||
|| contains("invalid token"))
|
||||
return ErrorCategory::Auth;
|
||||
|
||||
if (contains("timeout") || contains("timed out") || contains("connection")
|
||||
|| contains("could not resolve") || contains("unreachable")
|
||||
|| contains("network") || contains("ssl") || contains("refused"))
|
||||
|| contains("could not resolve") || contains("unreachable") || contains("network")
|
||||
|| contains("ssl") || contains("refused"))
|
||||
return ErrorCategory::Network;
|
||||
|
||||
return ErrorCategory::Provider;
|
||||
|
||||
Reference in New Issue
Block a user