Do not log unwind errors during isolate shutdown (flutter/engine#6008)

This commit is contained in:
Jason Simmons
2018-08-13 16:31:54 -07:00
committed by GitHub
parent d9d6c2e825
commit 29711ee46b

View File

@@ -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|