diff --git a/Classes/BAPromise.m b/Classes/BAPromise.m index 8c10004..643cb52 100644 --- a/Classes/BAPromise.m +++ b/Classes/BAPromise.m @@ -573,7 +573,8 @@ -(void)rejectWithError:(NSError *)error -(void)reject { - [self rejectWithError:[[NSError alloc] init]]; + NSError *error = [NSError errorWithDomain:@"benski.promise.error.domain" code:0 userInfo:@{ NSLocalizedDescriptionKey : @"Promise is rejected" }]; + [self rejectWithError:error]; } -(void)fulfillWithObject:(id)object orRejectWithError:(NSError *)error