diff --git a/runtime/dart_isolate.cc b/runtime/dart_isolate.cc index 71dfa136f45a5..e48c542c11d61 100644 --- a/runtime/dart_isolate.cc +++ b/runtime/dart_isolate.cc @@ -808,10 +808,12 @@ void DartIsolate::DartIsolateShutdownCallback( } tonic::DartApiScope api_scope; - FML_LOG(ERROR) << "Isolate " << tonic::StdStringFromDart(Dart_DebugName()) - << " exited with an error"; Dart_Handle sticky_error = Dart_GetStickyError(); - FML_CHECK(tonic::LogIfError(sticky_error)); + if (!Dart_IsFatalError(sticky_error)) { + FML_LOG(ERROR) << "Isolate " << tonic::StdStringFromDart(Dart_DebugName()) + << " exited with an error"; + FML_CHECK(tonic::LogIfError(sticky_error)); + } } // |Dart_IsolateCleanupCallback|