Skip to content

Commit b36512a

Browse files
committed
correcting analysis issue, and adding debugging
1 parent 74af096 commit b36512a

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

packages/_flutterfire_internals/lib/src/exception.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ FirebaseException platformExceptionToFirebaseException(
4646
String message = platformException.message ?? '';
4747

4848
if (details != null) {
49+
print('platformException.code: ${platformException.code}');
50+
print('platformException.details: ${platformException.details}');
51+
print('platformException.message: ${platformException.message}');
52+
4953
code = (details['code'] as String?) ?? code;
5054

5155
if ((code?.compareTo('not-found') == 0) && message.contains('NOT_FOUND:')) {

packages/cloud_firestore/cloud_firestore/example/integration_test/document_reference_e2e.dart

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -532,8 +532,11 @@ void runDocumentReferenceTests() {
532532
// 'Some requested document was not found'
533533
expect(
534534
e,
535-
isA<FirebaseException>().having((e) => e.message, 'message',
536-
isNot(contains('Some requested document was not found'))),
535+
isA<FirebaseException>().having(
536+
(e) => e.message,
537+
'message',
538+
isNot(contains('Some requested document was not found')),
539+
),
537540
);
538541
}
539542
},

0 commit comments

Comments
 (0)