Skip to content

Commit 20c1d3a

Browse files
stereotype441Commit Queue
authored andcommitted
[messages] Fix error message.
Fixes the error message emitted by `MessageWithAnalyzerCode.decodeType` if the type of the YAML node is not a string. Change-Id: I6a6a6964a5ad3f5dad1913ec37b77ceecc0bd576 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/465968 Commit-Queue: Paul Berry <[email protected]> Reviewed-by: Johnni Winther <[email protected]>
1 parent 702b025 commit 20c1d3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/analyzer_utilities/lib/analyzer_messages.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,6 +729,6 @@ LocatableDiagnostic $withArgumentsName({$withArgumentsParams}) {
729729
YamlScalar(:String value) =>
730730
AnalyzerDiagnosticType.fromString(value) ??
731731
(throw 'Unknown analyzer diagnostic type'),
732-
_ => throw 'Must be a bool',
732+
_ => throw 'Must be a string',
733733
};
734734
}

0 commit comments

Comments
 (0)