mirror of
https://github.com/flutter/flutter
synced 2024-10-13 19:52:53 +00:00
parent
556a33a368
commit
3023fe2046
|
@ -562,7 +562,7 @@ class HotRunner extends ResidentRunner {
|
|||
printTrace('reloaded $loadedLibraryCount of $finalLibraryCount libraries');
|
||||
reloadMessage = 'Reloaded $loadedLibraryCount of $finalLibraryCount libraries';
|
||||
}
|
||||
} catch (error, st) {
|
||||
} on Map<String, dynamic> catch (error, st) {
|
||||
printError('Hot reload failed: $error\n$st');
|
||||
final int errorCode = error['code'];
|
||||
final String errorMessage = error['message'];
|
||||
|
@ -576,6 +576,9 @@ class HotRunner extends ResidentRunner {
|
|||
|
||||
printError('Hot reload failed:\ncode = $errorCode\nmessage = $errorMessage\n$st');
|
||||
return new OperationResult(errorCode, errorMessage);
|
||||
} catch (error, st) {
|
||||
printError('Hot reload failed: $error\n$st');
|
||||
return new OperationResult(1, '$error');
|
||||
}
|
||||
// Record time it took for the VM to reload the sources.
|
||||
_addBenchmarkData('hotReloadVMReloadMilliseconds',
|
||||
|
|
Loading…
Reference in a new issue