Skip to content

Commit

Permalink
Fix missing fields in assertion error (#639)
Browse files Browse the repository at this point in the history
  • Loading branch information
artyom-razinov committed Oct 7, 2017
1 parent 931aa8c commit 2415de9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions EarlGrey/Core/GREYElementInteraction.m
Original file line number Diff line number Diff line change
Expand Up @@ -714,10 +714,10 @@ - (BOOL)grey_handleFailureOfAction:(id<GREYAction>)action
[GREYError grey_nestedDescriptionForError:actionError]);
} else {
if ([actionError isKindOfClass:[GREYError class]]) {
NSMutableDictionary *errorDetails = [[NSMutableDictionary alloc] init];
errorDetails[kErrorDetailActionNameKey] = action.name;
GREYError *greyError = (GREYError *)actionError;
NSMutableDictionary *errorDetails = [[NSMutableDictionary alloc] initWithDictionary:greyError.errorInfo];
errorDetails[kErrorDetailElementMatcherKey] = _elementMatcher.description;
[(GREYError *)actionError setErrorInfo:errorDetails];
[greyError setErrorInfo:errorDetails];
}
*userProvidedError = actionError;
}
Expand Down

0 comments on commit 2415de9

Please sign in to comment.