Commit 2ccdef99 authored by Daniel Vrátil's avatar Daniel Vrátil
Browse files

Fix reporting error when deserialization of compressed data failes

parent f7b93de6
Pipeline #39047 failed with stage
in 25 minutes and 32 seconds
......@@ -125,7 +125,7 @@ void ItemSerializer::deserialize(Item &item, const QByteArray &label, QIODevice
CompressionStream decompressor(&data);;
if (!plugin->deserialize(item, label, decompressor, version)) {
handleError(decompressor, true);
handleError(data, true);
if (decompressor.error()) {
qCWarning(AKONADICORE_LOG) << "Deserialization failed due to decompression error:" << QString::fromStdString(decompressor.error().message());
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment