Skip to content

Commit

Permalink
Remove extraneous information from error message
Browse files Browse the repository at this point in the history
  • Loading branch information
dustyholmes-wf authored and davidmorgan committed Aug 16, 2023
1 parent e6d1981 commit d82759a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion built_value/lib/serializer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -391,5 +391,5 @@ class DeserializationError extends Error {
DeserializationError._(this.json, this.type, this.error);

@override
String toString() => "Deserializing json content to '$type' failed due to: $error";
String toString() => "Deserializing to '$type' failed due to: $error";
}
2 changes: 1 addition & 1 deletion end_to_end_test/test/values_serializer_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ void main() {
expect(
() => serializers.deserialize(incorrectSerialized),
throwsA(isErrorContaining(
"Deserializing json content to "
"Deserializing to "
"'unspecified' failed due to: Deserializing json content to "
"'ValidatedValue' failed due to: Deserializing json content to 'int' "
"failed due to: type 'String' is not a subtype of type "
Expand Down

0 comments on commit d82759a

Please sign in to comment.