Skip to content

Commit

Permalink
fixed throwing of an State error
Browse files Browse the repository at this point in the history
  • Loading branch information
escamoteur committed Sep 4, 2023
1 parent 11d5bcc commit 4e45b32
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/get_it_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,9 @@ class _GetItImplementation implements GetIt {
);
throwIfNot(
instanceFactory.isReady,
'You tried to access an instance of ${instanceName ?? T.toString()} that is not ready yet',
StateError(
'You tried to access an instance of ${instanceName ?? T.toString()} that is not ready yet',
),
);
instance = instanceFactory.instance!;
} else {
Expand Down

0 comments on commit 4e45b32

Please sign in to comment.