We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 931aa8c commit 2415de9Copy full SHA for 2415de9
EarlGrey/Core/GREYElementInteraction.m
@@ -714,10 +714,10 @@ - (BOOL)grey_handleFailureOfAction:(id<GREYAction>)action
714
[GREYError grey_nestedDescriptionForError:actionError]);
715
} else {
716
if ([actionError isKindOfClass:[GREYError class]]) {
717
- NSMutableDictionary *errorDetails = [[NSMutableDictionary alloc] init];
718
- errorDetails[kErrorDetailActionNameKey] = action.name;
+ GREYError *greyError = (GREYError *)actionError;
+ NSMutableDictionary *errorDetails = [[NSMutableDictionary alloc] initWithDictionary:greyError.errorInfo];
719
errorDetails[kErrorDetailElementMatcherKey] = _elementMatcher.description;
720
- [(GREYError *)actionError setErrorInfo:errorDetails];
+ [greyError setErrorInfo:errorDetails];
721
}
722
*userProvidedError = actionError;
723
0 commit comments