mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Report RpcException error thrown by _reloadSource vmservice rpc. (#16417)
* Don't return null, just rethrow RpcException error when vmservice responds with error.
This commit is contained in:
parent
fb0ab99d6f
commit
ea30c95dc9
@ -534,7 +534,9 @@ class HotRunner extends ResidentRunner {
|
||||
pause: pause
|
||||
);
|
||||
countExpectedReports += reports.length;
|
||||
Future.wait(reports).then((List<Map<String, dynamic>> list) {
|
||||
Future.wait(reports).catchError((dynamic error) {
|
||||
return <Map<String, dynamic>>[error];
|
||||
}).then((List<Map<String, dynamic>> list) {
|
||||
// TODO(aam): Investigate why we are validating only first reload report,
|
||||
// which seems to be current behavior
|
||||
final Map<String, dynamic> firstReport = list.first;
|
||||
|
@ -755,7 +755,7 @@ class VM extends ServiceObjectOwner {
|
||||
} on rpc.RpcException catch (error) {
|
||||
printError('Error ${error.code} received from application: ${error.message}');
|
||||
printTrace('${error.data}');
|
||||
return null;
|
||||
rethrow;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user