Skip to content

Commit 2c1bc2d

Browse files
committed
Fix PromiseKit/UIImagePickerController subspec
1 parent 4b92fa0 commit 2c1bc2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/UIViewController+AnyPromise.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ - (void)imagePickerController:(UIImagePickerController *)picker didFinishPicking
131131
}
132132

133133
- (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker {
134-
resolve([NSError cancelledError]);
134+
resolve([NSError errorWithDomain:NSCocoaErrorDomain code:NSUserCancelledError userInfo:nil]);
135135
retainCycle = nil;
136136
}
137137

0 commit comments

Comments
 (0)