Skip to content

Commit

Permalink
Do not log unwind errors during isolate shutdown (#6008)
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-simmons authored Aug 13, 2018
1 parent 89176ee commit 9d47106
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions runtime/dart_isolate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down

0 comments on commit 9d47106

Please sign in to comment.