diff --git a/lib/src/core/definitions/extensions/json_parser.dart b/lib/src/core/definitions/extensions/json_parser.dart index 94b338c7..9077829b 100644 --- a/lib/src/core/definitions/extensions/json_parser.dart +++ b/lib/src/core/definitions/extensions/json_parser.dart @@ -61,7 +61,9 @@ extension ParseField on Map { return {} as T; } - throw FormatException("Expected $T, got ${fieldValue.runtimeType}"); + throw FormatException( + "Expected $T, got ${fieldValue.runtimeType} for field $name", + ); } /// Parses a single field with a given [name] as a [Uri].