aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--typesystem.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/typesystem.cpp b/typesystem.cpp
index 87607130b..9ffdf502c 100644
--- a/typesystem.cpp
+++ b/typesystem.cpp
@@ -1696,7 +1696,10 @@ bool TypeDatabase::parseFile(const QString &filename, bool generate)
return m_parsedTypesystemFiles[filepath];
QFile file(filepath);
- Q_ASSERT_X(file.exists(), __FUNCTION__, ("Can't find " + filename).toLocal8Bit().data());
+ if (!file.exists()) {
+ ReportHandler::warning("Can't find " + filename+", typesystme paths: "+m_typesystemPaths.join(", "));
+ return false;
+ }
int count = m_entries.size();
bool ok = parseFile(&file, generate);