Dump failing thread if IsDaemon check fails.
Change-Id: I93b5ba426c086343533e3ef022498e47d50503c8
diff --git a/src/thread_list.cc b/src/thread_list.cc
index e288878..601a93f 100644
--- a/src/thread_list.cc
+++ b/src/thread_list.cc
@@ -403,7 +403,7 @@
Thread* thread = *it;
// This is only run after all non-daemon threads have exited, so the remainder should all be
// daemons.
- CHECK(thread->IsDaemon());
+ CHECK(thread->IsDaemon()) << *thread;
if (thread != self) {
thread->ModifySuspendCount(self, +1, false);
}