Pubspec: Rename formatMessage to formattedMessage
diff --git a/pkgs/pubspec_parse/lib/src/errors.dart b/pkgs/pubspec_parse/lib/src/errors.dart index 288553c..528e44a 100644 --- a/pkgs/pubspec_parse/lib/src/errors.dart +++ b/pkgs/pubspec_parse/lib/src/errors.dart
@@ -68,7 +68,7 @@ /// Returns [message] formatted with source information provided by /// [yamlNode]. - String get formatMessage => yamlNode.span.message(message); + String get formattedMessage => yamlNode.span.message(message); @override String toString() => message;
diff --git a/pkgs/pubspec_parse/test/test_utils.dart b/pkgs/pubspec_parse/test/test_utils.dart index 0924b41..65000af 100644 --- a/pkgs/pubspec_parse/test/test_utils.dart +++ b/pkgs/pubspec_parse/test/test_utils.dart
@@ -14,8 +14,8 @@ Matcher _throwsParsedYamlException(String prettyValue) => throwsA(allOf( const isInstanceOf<ParsedYamlException>(), - new FeatureMatcher<ParsedYamlException>('formatMessage', (e) { - var message = e.formatMessage; + new FeatureMatcher<ParsedYamlException>('formattedMessage', (e) { + var message = e.formattedMessage; printOnFailure("Actual error format:\nr'''\n$message'''"); _printDebugParsedYamlException(e); return message;