summaryrefslogtreecommitdiffstats
path: root/src/libs
diff options
context:
space:
mode:
authorArttu Tarkiainen <arttu.tarkiainen@qt.io>2023-02-10 14:39:41 +0200
committerArttu Tarkiainen <arttu.tarkiainen@qt.io>2023-02-10 14:47:14 +0200
commitd69f0cce6dbd87a88bb71c78166b11cfbcb7b31f (patch)
treeb651ab11f927be88a22270e26fae6b688ae65883 /src/libs
parent871832b8b67eb55208031f4b7edb6c02b824ad00 (diff)
Use correct exception type for UpdateCacheTask errors
This caused missing exception messages because there was no catch block for the incorrect exception type. Change-Id: I4dc91a039f4cadbbe66339e54d9c1e484b253e18 Reviewed-by: Katja Marttila <katja.marttila@qt.io>
Diffstat (limited to 'src/libs')
-rw-r--r--src/libs/installer/metadatajob_p.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/installer/metadatajob_p.h b/src/libs/installer/metadatajob_p.h
index 7dcb0b34c..ef2729dbb 100644
--- a/src/libs/installer/metadatajob_p.h
+++ b/src/libs/installer/metadatajob_p.h
@@ -153,7 +153,7 @@ public:
// Bail out if there was error while registering items
if (!success) {
- fi.reportException(UnzipArchiveException(m_cache->errorString() + u' '
+ fi.reportException(CacheTaskException(m_cache->errorString() + u' '
+ MetadataJob::tr("Clearing the cache directory and restarting the application may solve this.")));
m_cache->sync();
fi.reportFinished();
@@ -166,7 +166,7 @@ public:
m_cache->removeItem(meta->checksum());
if (!m_cache->sync()) {
- fi.reportException(UnzipArchiveException(m_cache->errorString() + u' '
+ fi.reportException(CacheTaskException(m_cache->errorString() + u' '
+ MetadataJob::tr("Clearing the cache directory and restarting the application may solve this.")));
}