@@ -233,14 +233,17 @@ - (void)refreshInstallationsTokenWithCompletionHandler:
233
233
FIRLogError (kFIRLoggerRemoteConfig , @" I-RCN000073" , @" %@ " ,
234
234
[NSString stringWithFormat: @" %@ " , errorDescription]);
235
235
strongSelf->_settings .isFetchInProgress = NO ;
236
+
237
+ NSMutableDictionary *userInfo = [NSMutableDictionary dictionary ];
238
+ userInfo[NSLocalizedDescriptionKey ] = errorDescription;
239
+ userInfo[NSUnderlyingErrorKey ] = error.userInfo [NSUnderlyingErrorKey ];
240
+
236
241
return [strongSelf
237
242
reportCompletionOnHandler: completionHandler
238
243
withStatus: FIRRemoteConfigFetchStatusFailure
239
244
withError: [NSError errorWithDomain: FIRRemoteConfigErrorDomain
240
245
code: FIRRemoteConfigErrorInternalError
241
- userInfo: @{
242
- NSLocalizedDescriptionKey : errorDescription
243
- }]];
246
+ userInfo: userInfo]];
244
247
}
245
248
246
249
// We have a valid token. Get the backing installationID.
@@ -265,18 +268,20 @@ - (void)refreshInstallationsTokenWithCompletionHandler:
265
268
if (!identifier || error) {
266
269
NSString *errorDescription =
267
270
[NSString stringWithFormat: @" Error getting iid : %@ ." , error];
271
+
272
+ NSMutableDictionary *userInfo = [NSMutableDictionary dictionary ];
273
+ userInfo[NSLocalizedDescriptionKey ] = errorDescription;
274
+ userInfo[NSUnderlyingErrorKey ] = error.userInfo [NSUnderlyingErrorKey ];
275
+
268
276
FIRLogError (kFIRLoggerRemoteConfig , @" I-RCN000055" , @" %@ " ,
269
277
[NSString stringWithFormat: @" %@ " , errorDescription]);
270
278
strongSelfQueue->_settings .isFetchInProgress = NO ;
271
279
return [strongSelfQueue
272
280
reportCompletionOnHandler: completionHandler
273
281
withStatus: FIRRemoteConfigFetchStatusFailure
274
- withError: [NSError
275
- errorWithDomain: FIRRemoteConfigErrorDomain
276
- code: FIRRemoteConfigErrorInternalError
277
- userInfo: @{
278
- NSLocalizedDescriptionKey : errorDescription
279
- }]];
282
+ withError: [NSError errorWithDomain: FIRRemoteConfigErrorDomain
283
+ code: FIRRemoteConfigErrorInternalError
284
+ userInfo: userInfo]];
280
285
}
281
286
282
287
FIRLogInfo (kFIRLoggerRemoteConfig , @" I-RCN000022" , @" Success to get iid : %@ ." ,
0 commit comments