Skip to content

Commit 0454aeb

Browse files
committed
Report the repository initialization error when testing
1 parent bd1f497 commit 0454aeb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: ObjectiveGitTests/QuickSpec+GTFixtures.m

+3-2
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,9 @@ - (BOOL)unzipFromArchiveAtPath:(NSString *)zipPath intoDirectory:(NSString *)des
121121

122122
- (GTRepository *)fixtureRepositoryNamed:(NSString *)name {
123123
NSURL *url = [NSURL fileURLWithPath:[self pathForFixtureRepositoryNamed:name]];
124-
GTRepository *repository = [[GTRepository alloc] initWithURL:url error:NULL];
125-
XCTAssertNotNil(repository, @"Couldn't create a repository for %@", name);
124+
NSError *error = nil;
125+
GTRepository *repository = [[GTRepository alloc] initWithURL:url error:&error];
126+
XCTAssertNotNil(repository, @"Couldn't create a repository for %@: %@", name, error);
126127
return repository;
127128
}
128129

0 commit comments

Comments
 (0)