File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 4
4
#import < SurveyMonkeyiOSSDK/SurveyMonkeyiOSSDK.h>
5
5
6
6
static NSDictionary *SurveyMonkeyErrorJson (NSError *error) {
7
+ NSDictionary *userInfo = error.userInfo ;
8
+ BOOL surveyError = userInfo[@" SurveyMonkeySDK_Error" ];
9
+ NSString *errorDescription = surveyError ? error.userInfo [@" SurveyMonkeySDK_Error" ] : error.localizedDescription ;
7
10
return @{
8
11
@" code" : @(error.code ),
9
- @" description" : error. userInfo [ @" SurveyMonkeySDK_Error " ] ,
12
+ @" description" : errorDescription ,
10
13
@" fullDescription" : error.description
11
14
};
12
15
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-native-survey-monkey" ,
3
- "version" : " 1.2.0 " ,
3
+ "version" : " 1.2.1 " ,
4
4
"description" : " React Native library for Survey Monkey" ,
5
5
"contributors" : [
6
6
" Yaroslav Fuchko <yarikpwnzer1@gmail.com>" ,
You can’t perform that action at this time.
0 commit comments