aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/abstractmetabuilder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken6/ApiExtractor/abstractmetabuilder.cpp')
-rw-r--r--sources/shiboken6/ApiExtractor/abstractmetabuilder.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/sources/shiboken6/ApiExtractor/abstractmetabuilder.cpp b/sources/shiboken6/ApiExtractor/abstractmetabuilder.cpp
index 8216a5e8e..73e974386 100644
--- a/sources/shiboken6/ApiExtractor/abstractmetabuilder.cpp
+++ b/sources/shiboken6/ApiExtractor/abstractmetabuilder.cpp
@@ -31,6 +31,7 @@
#include "abstractmetafield.h"
#include "abstractmetafunction.h"
#include "graph.h"
+#include "exception.h"
#include "messages.h"
#include "propertyspec.h"
#include "reporthandler.h"
@@ -606,7 +607,7 @@ void AbstractMetaBuilderPrivate::traverseDom(const FileModelItem &dom)
const AddedFunctionList &globalUserFunctions = types->globalUserFunctions();
for (const AddedFunctionPtr &addedFunc : globalUserFunctions) {
if (!traverseAddedGlobalFunction(addedFunc, &errorMessage))
- qFatal("%s", qPrintable(errorMessage));
+ throw Exception(errorMessage);
}
m_itemToClass.clear();
@@ -1342,7 +1343,7 @@ void AbstractMetaBuilderPrivate::fillAddedFunctions(AbstractMetaClass *metaClass
const AddedFunctionList &addedFunctions = metaClass->typeEntry()->addedFunctions();
for (const AddedFunctionPtr &addedFunc : addedFunctions) {
if (!traverseAddedMemberFunction(addedFunc, metaClass, &errorMessage))
- qFatal("%s", qPrintable(errorMessage));
+ throw Exception(qPrintable(errorMessage));
}
}