File tree Expand file tree Collapse file tree 3 files changed +13
-6
lines changed Expand file tree Collapse file tree 3 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -120,12 +120,12 @@ class ParsedYamlException implements Exception {
120
120
final Object ? innerError;
121
121
122
122
ParsedYamlException (
123
- this . message,
124
- YamlNode yamlNode, {
123
+ String message,
124
+ YamlNode this . yamlNode, {
125
125
this .innerError,
126
126
}) :
127
- // ignore: prefer_initializing_formals
128
- yamlNode = yamlNode ;
127
+ // TODO(kevmoo) remove when dart-lang/sdk#50756 is fixed!
128
+ message = message. replaceAll ( " of ' in type cast'" , ' in type cast' ) ;
129
129
130
130
factory ParsedYamlException .fromYamlException (YamlException exception) =>
131
131
_WrappedYamlException (exception);
Original file line number Diff line number Diff line change @@ -39,6 +39,11 @@ Builder jsonSerializable(BuilderOptions options) {
39
39
lines.add (e.innerError.toString ());
40
40
}
41
41
42
- throw StateError (lines.join ('\n ' ));
42
+ throw StateError (
43
+ lines
44
+ .join ('\n ' )
45
+ // TODO(kevmoo) remove when dart-lang/sdk#50756 is fixed!
46
+ .replaceAll (" of ' in type cast'" , ' in type cast' ),
47
+ );
43
48
}
44
49
}
Original file line number Diff line number Diff line change @@ -39,5 +39,7 @@ dev_dependencies:
39
39
yaml : ^3.0.0
40
40
41
41
dependency_overrides :
42
+ checked_yaml :
43
+ path : ../checked_yaml
42
44
json_annotation :
43
- path : ../json_annotation
45
+ path : ../json_annotation
You can’t perform that action at this time.
0 commit comments