mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 15:30:18 +00:00
Add new Error constants to PBGitXErrors, mostly for CLI support
This commit is contained in:
+6
-3
@@ -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
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user