From 4983c40b580a2421c9be43760e6a8bebdb156ef3 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 18 Jan 2017 16:02:40 +0100 Subject: Debug output --- common/domain/applicationdomaintype.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common/domain') diff --git a/common/domain/applicationdomaintype.cpp b/common/domain/applicationdomaintype.cpp index 75438d5..1647951 100644 --- a/common/domain/applicationdomaintype.cpp +++ b/common/domain/applicationdomaintype.cpp @@ -150,7 +150,7 @@ QByteArray ApplicationDomainType::getBlobProperty(const QByteArray &key) const const auto path = getProperty(key).value().value; QFile file(path); if (!file.open(QIODevice::ReadOnly)) { - SinkError() << "Failed to open the file: " << file.errorString() << path; + SinkError() << "Failed to open the file for reading: " << file.errorString() << path << " For property " << key; return QByteArray(); } return file.readAll(); @@ -161,7 +161,7 @@ void ApplicationDomainType::setBlobProperty(const QByteArray &key, const QByteAr const auto path = Sink::temporaryFileLocation() + "/" + QUuid::createUuid().toString(); QFile file(path); if (!file.open(QIODevice::WriteOnly)) { - SinkError() << "Failed to open the file: " << file.errorString() << path; + SinkError() << "Failed to open the file for writing: " << file.errorString() << path<< " For property " << key; return; } file.write(value); -- cgit v1.2.3