-
Notifications
You must be signed in to change notification settings - Fork 28.7k
[flutter_tools] fix RangeError in gen-l10n by checking for empty string #107604
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[flutter_tools] fix RangeError in gen-l10n by checking for empty string #107604
Conversation
@@ -124,6 +124,9 @@ class L10nException implements Exception { | |||
L10nException(this.message); | |||
|
|||
final String message; | |||
|
|||
@override | |||
String toString() => message; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without a toString() implementation, it was difficult to debug test failures
'throws an error attempting to add preferred locales ' | ||
'when there is no corresponding arb file for that ' | ||
'locale', | ||
'throws an error attempting to add preferred locales when there is no corresponding arb file for that locale', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no change to text, by putting the string on one line, it's easier to grep the codebase for this testname
@Jasguerrero friendly ping |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fixes #107593