mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-05 11:40:42 +00:00
check for the right error message
This commit is contained in:
@@ -93,6 +93,15 @@ namespace Octokit
|
||||
newRepository.Name,
|
||||
baseAddress, e);
|
||||
}
|
||||
|
||||
if (String.Equals(
|
||||
"please upgrade your plan to create a new private repository.",
|
||||
errorMessage,
|
||||
StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
throw new PrivateRepositoryQuotaExceededException(e);
|
||||
}
|
||||
|
||||
if (String.Equals(
|
||||
"name can't be private. You are over your quota.",
|
||||
errorMessage,
|
||||
|
||||
Reference in New Issue
Block a user