Skip to content

Commit 7ce7955

Browse files
committed
Report an error if the repository cannot be opened
1 parent 3f779b3 commit 7ce7955

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Classes/Controllers/PBGitRepositoryDocument.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ - (BOOL)readFromURL:(NSURL *)absoluteURL ofType:(NSString *)typeName error:(NSEr
5151
}
5252

5353
_repository = [[PBGitRepository alloc] initWithURL:absoluteURL error:outError];
54+
if (!_repository)
55+
return NO;
5456

5557
return YES;
5658
}

0 commit comments

Comments
 (0)