Add new Error constants to PBGitXErrors, mostly for CLI support

This commit is contained in:
André Berg
2010-04-05 21:09:42 +02:00
parent 7761d2f06f
commit bc44ebfa01
2 changed files with 12 additions and 6 deletions
+6 -3
View File
@@ -26,6 +26,9 @@ extern NSString * const PBGitRepositoryErrorDomain;
extern NSString * const PBInvalidBranchErrorMessage;
extern NSString * const PBMissingRemoteErrorMessage;
extern const NSInteger PBFileReadingUnsupportedErrorCode; /* @"Reading files is not supported." */
extern const NSInteger PBNotAGitRepositoryErrorCode; /* @"%@ does not appear to be a git repository." */
extern const NSInteger PBGitBinaryNotFoundErrorCode;
extern const NSInteger PBFileReadingUnsupportedErrorCode; /* @"Reading files is not supported." */
extern const NSInteger PBNotAGitRepositoryErrorCode; /* @"%@ does not appear to be a git repository." */
extern const NSInteger PBGitBinaryNotFoundErrorCode;
extern const NSInteger PBNotAValidRefFormatErrorCode; /* happens when check-ref-format in PBGitRepository -checkRefFormat returns NO */
// extern const NSInteger PBCLINilValueForArgumentsCode; /* PBCLIProxy -openRepository:arguments:error: is passed nil for arguments */
// extern const NSInteger PBCLINilValueForRepositoryPathErrorCode; /* PBCLIProxy -openRepository:arguments:error: is passed nil for repositoryPath */
+6 -3
View File
@@ -28,6 +28,9 @@ NSString * const PBInvalidBranchErrorMessage = @"Please select a local branch f
NSString * const PBMissingRemoteErrorMessage = @"This branch does not appear to have a remote tracking branch associated in its config file section.";
const NSInteger PBNotAGitRepositoryErrorCode = 1;
const NSInteger PBFileReadingUnsupportedErrorCode = 2;
const NSInteger PBGitBinaryNotFoundErrorCode = 3;
const NSInteger PBNotAGitRepositoryErrorCode = 1;
const NSInteger PBFileReadingUnsupportedErrorCode = 2;
const NSInteger PBGitBinaryNotFoundErrorCode = 3;
const NSInteger PBNotAValidRefFormatErrorCode = 4;
// const NSInteger PBCLINilValueForArgumentsCode = 5;
// const NSInteger PBCLINilValueForRepositoryPathErrorCode = 6;