diff --git a/src/cpp/rootwrapper.cpp b/src/cpp/rootwrapper.cpp index b840957..87b0d7a 100644 --- a/src/cpp/rootwrapper.cpp +++ b/src/cpp/rootwrapper.cpp @@ -33,6 +33,7 @@ void RootWrapper::reloadGraph(bool hard) { SCAVENGE_PARENT = nullptr; if (obj == nullptr) { + qWarning() << component.errorString().toStdString().c_str(); qWarning() << "failed to create root component"; return; } diff --git a/src/cpp/scavenge.cpp b/src/cpp/scavenge.cpp index b61f658..50c1f8f 100644 --- a/src/cpp/scavenge.cpp +++ b/src/cpp/scavenge.cpp @@ -36,5 +36,10 @@ QObject* createComponentScavengeable( if (instance->parent() != nullptr) instance->setParent(&parent); component.setInitialProperties(instance, initialProperties); component.completeCreate(); + + if (instance == nullptr) { + qWarning() << component.errorString().toStdString().c_str(); + } + return instance; }