We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1c9d5bb + 4b5f9ef commit 6e97bb1Copy full SHA for 6e97bb1
.gitignore
@@ -4,3 +4,4 @@ bin/
4
5
# user-files
6
*.suo
7
+_ReSharper*/
Git.hub/Client.cs
@@ -81,6 +81,8 @@ public IList<Repository> getRepositories(string username)
81
request.AddUrlSegment("name", username);
82
83
var list = client.Get<List<Repository>>(request).Data;
84
+ if (list == null)
85
+ throw new InvalidOperationException("User does not exist.");
86
list.ForEach(r => r._client = client);
87
return list;
88
}
0 commit comments