mirror of
https://github.com/flutter/flutter
synced 2024-08-27 20:10:11 +00:00
Don't rethrow Dart plugin registration exceptions (#122111)
Don't rethrow Dart plugin registration exceptions
This commit is contained in:
parent
c0ddbf129e
commit
80cee59878
|
@ -703,7 +703,6 @@ const String _dartPluginRegisterWith = r'''
|
|||
'`{{pluginName}}` threw an error: $err. '
|
||||
'The app may not function as expected until you remove this plugin from pubspec.yaml'
|
||||
);
|
||||
rethrow;
|
||||
}
|
||||
''';
|
||||
|
||||
|
|
|
@ -257,7 +257,6 @@ void main() {
|
|||
" '`path_provider_linux` threw an error: \$err. '\n"
|
||||
" 'The app may not function as expected until you remove this plugin from pubspec.yaml'\n"
|
||||
' );\n'
|
||||
' rethrow;\n'
|
||||
' }\n'
|
||||
'\n'
|
||||
' } else if (Platform.isMacOS) {\n'
|
||||
|
@ -385,7 +384,6 @@ void main() {
|
|||
" '`path_provider_linux` threw an error: \$err. '\n"
|
||||
" 'The app may not function as expected until you remove this plugin from pubspec.yaml'\n"
|
||||
' );\n'
|
||||
' rethrow;\n'
|
||||
' }\n'
|
||||
'\n'
|
||||
' } else if (Platform.isMacOS) {\n'
|
||||
|
|
|
@ -807,7 +807,6 @@ void main() {
|
|||
" '`url_launcher_android` threw an error: \$err. '\n"
|
||||
" 'The app may not function as expected until you remove this plugin from pubspec.yaml'\n"
|
||||
' );\n'
|
||||
' rethrow;\n'
|
||||
' }\n'
|
||||
'\n'
|
||||
' } else if (Platform.isIOS) {\n'
|
||||
|
@ -818,7 +817,6 @@ void main() {
|
|||
" '`url_launcher_ios` threw an error: \$err. '\n"
|
||||
" 'The app may not function as expected until you remove this plugin from pubspec.yaml'\n"
|
||||
' );\n'
|
||||
' rethrow;\n'
|
||||
' }\n'
|
||||
'\n'
|
||||
' } else if (Platform.isLinux) {\n'
|
||||
|
@ -829,7 +827,6 @@ void main() {
|
|||
" '`url_launcher_linux` threw an error: \$err. '\n"
|
||||
" 'The app may not function as expected until you remove this plugin from pubspec.yaml'\n"
|
||||
' );\n'
|
||||
' rethrow;\n'
|
||||
' }\n'
|
||||
'\n'
|
||||
' } else if (Platform.isMacOS) {\n'
|
||||
|
@ -840,7 +837,6 @@ void main() {
|
|||
" '`awesome_macos` threw an error: \$err. '\n"
|
||||
" 'The app may not function as expected until you remove this plugin from pubspec.yaml'\n"
|
||||
' );\n'
|
||||
' rethrow;\n'
|
||||
' }\n'
|
||||
'\n'
|
||||
' try {\n'
|
||||
|
@ -850,7 +846,6 @@ void main() {
|
|||
" '`url_launcher_macos` threw an error: \$err. '\n"
|
||||
" 'The app may not function as expected until you remove this plugin from pubspec.yaml'\n"
|
||||
' );\n'
|
||||
' rethrow;\n'
|
||||
' }\n'
|
||||
'\n'
|
||||
' } else if (Platform.isWindows) {\n'
|
||||
|
@ -861,7 +856,6 @@ void main() {
|
|||
" '`url_launcher_windows` threw an error: \$err. '\n"
|
||||
" 'The app may not function as expected until you remove this plugin from pubspec.yaml'\n"
|
||||
' );\n'
|
||||
' rethrow;\n'
|
||||
' }\n'
|
||||
'\n'
|
||||
' }\n'
|
||||
|
|
Loading…
Reference in a new issue