Fail ColdRunner.attach() eagerly when device connection fails (#74543)

This commit is contained in:
Jenn Magder
2021-01-25 10:54:05 -08:00
committed by GitHub
parent e623d93d2b
commit 9baca0c3d7

View File

@@ -153,7 +153,7 @@ class ColdRunner extends ResidentRunner {
serveDevToolsGracefully(
devToolsServerAddress: debuggingOptions.devToolsServerAddress,
),
]);
], eagerError: true);
} on Exception catch (error) {
globals.printError('Error connecting to the service protocol: $error');
return 2;