Skip to content

Commit 6e97bb1

Browse files
committed
Merge pull request #1 from cocytus/master
Small changes
2 parents 1c9d5bb + 4b5f9ef commit 6e97bb1

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ bin/
44

55
# user-files
66
*.suo
7+
_ReSharper*/

Git.hub/Client.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ public IList<Repository> getRepositories(string username)
8181
request.AddUrlSegment("name", username);
8282

8383
var list = client.Get<List<Repository>>(request).Data;
84+
if (list == null)
85+
throw new InvalidOperationException("User does not exist.");
8486
list.ForEach(r => r._client = client);
8587
return list;
8688
}

0 commit comments

Comments
 (0)