Skip to content

Commit

Permalink
Merge pull request #57 from fe/nezha/add_error_message
Browse files Browse the repository at this point in the history
[FIX][NEZ][1.75.0] add message for flutter error
  • Loading branch information
edmond-l-20230331 authored and GitHub Enterprise committed Nov 20, 2023
2 parents b7084ff + 5efabcf commit 813912d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion webf/lib/src/launcher/launcher_nezha.dart
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,10 @@ class _MainPageState extends State<MainPage>

void _showErrorPage(String errCode, String message) {
TimeMeasure.log('$errCode, $message');
NezhaBirdgeModule.invokeMethod(uniqueId, NEZ_BRIDGE_SHOW_ERROR_PAGE, errCode);
NezhaBirdgeModule.invokeMethod(uniqueId, NEZ_BRIDGE_SHOW_ERROR_PAGE, {
'code': errCode,
'message': message
});
}

WebFBundle? _parseBundleResult(dynamic result) {
Expand Down

0 comments on commit 813912d

Please sign in to comment.