Skip to content

Commit

Permalink
Merge pull request #252 from Zambrella/master
Browse files Browse the repository at this point in the history
Updated Firebase exception code to one that matches real code
  • Loading branch information
atn832 committed Nov 29, 2022
2 parents 8b5b62e + ff85bd6 commit f327f12
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/src/mock_document_reference.dart
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,10 @@ class MockDocumentReference<T extends Object?> implements DocumentReference<T> {
Future<void> update(Map<String, dynamic> data) {
if (!_exists()) {
return Future.error(FirebaseException(
plugin: 'FakeFirestore',
code: 'cloud_firestore/not-found',
message: 'Some requested document was not found.'));
plugin: 'FakeFirestore',
code: 'not-found',
message: 'Some requested document was not found.',
));
}
return _setRawData(data);
}
Expand Down

0 comments on commit f327f12

Please sign in to comment.