From f89c3f3ed11ead14adfaad3084b97f7a88729cf5 Mon Sep 17 00:00:00 2001 From: Chinmay Garde Date: Fri, 11 May 2018 18:32:35 -0700 Subject: [PATCH] Terminate the engine immediately if there are isolate launch errors. (flutter/engine#5244) --- engine/src/flutter/shell/common/engine.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/engine/src/flutter/shell/common/engine.cc b/engine/src/flutter/shell/common/engine.cc index fc1714c4f4..4958e7445e 100644 --- a/engine/src/flutter/shell/common/engine.cc +++ b/engine/src/flutter/shell/common/engine.cc @@ -109,6 +109,7 @@ bool Engine::Run(RunConfiguration configuration) { } if (!PrepareAndLaunchIsolate(std::move(configuration))) { + FXL_LOG(ERROR) << "Engine not prepare and launch isolate."; return false; } @@ -143,12 +144,12 @@ bool Engine::PrepareAndLaunchIsolate(RunConfiguration configuration) { auto isolate = runtime_controller_->GetRootIsolate(); if (!isolate_configuration->PrepareIsolate(isolate)) { - FXL_DLOG(ERROR) << "Could not prepare to run the isolate."; + FXL_LOG(ERROR) << "Could not prepare to run the isolate."; return false; } if (!isolate->Run(configuration.GetEntrypoint())) { - FXL_DLOG(ERROR) << "Could not run the isolate."; + FXL_LOG(ERROR) << "Could not run the isolate."; return false; }