Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(core): Improve SerializationException message #10

Merged
merged 1 commit into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/celest_core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## 0.1.1-wip

- Update README
- Improve error message of `SerializationException`

## 0.1.0

Expand Down
3 changes: 2 additions & 1 deletion packages/celest_core/lib/src/serialization/serializer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ final class _Serializers extends Serializers {
final serializer = get<Dart>();
if (serializer == null) {
throw SerializationException(
'No serializer found for $Dart. Did you forget to put() it?',
'No serializer found for $Dart. Did you forget to call `celest.init()` '
"at the start of your Flutter app's `main` function?",
);
}
return serializer;
Expand Down
Loading