Merge "Add more info to class initialization check"
diff --git a/runtime/class_linker.cc b/runtime/class_linker.cc
index 856e538..f18e0b4 100644
--- a/runtime/class_linker.cc
+++ b/runtime/class_linker.cc
@@ -267,7 +267,9 @@
// cannot in general be guaranteed, but in all likelihood leads to breakage down the line.
if (klass->GetClassLoader() == nullptr && !Runtime::Current()->IsAotCompiler()) {
std::string tmp;
- LOG(kIsDebugBuild ? FATAL : WARNING) << klass->GetDescriptor(&tmp) << " failed initialization";
+ LOG(kIsDebugBuild ? FATAL : WARNING) << klass->GetDescriptor(&tmp)
+ << " failed initialization: "
+ << self->GetException()->Dump();
}
env->ExceptionClear();