summaryrefslogtreecommitdiffstats
path: root/common/domain/applicationdomaintype.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-01-18 16:02:40 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-01-18 16:02:40 +0100
commit4983c40b580a2421c9be43760e6a8bebdb156ef3 (patch)
tree822416b239d0c1f702c88bc11d98a75a45a1e537 /common/domain/applicationdomaintype.cpp
parent62d222f20de7558ebb266efdcadf458e3807e406 (diff)
downloadsink-4983c40b580a2421c9be43760e6a8bebdb156ef3.tar.gz
sink-4983c40b580a2421c9be43760e6a8bebdb156ef3.zip
Debug output
Diffstat (limited to 'common/domain/applicationdomaintype.cpp')
-rw-r--r--common/domain/applicationdomaintype.cpp4
1 files changed, 2 insertions, 2 deletions
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
150 const auto path = getProperty(key).value<BLOB>().value; 150 const auto path = getProperty(key).value<BLOB>().value;
151 QFile file(path); 151 QFile file(path);
152 if (!file.open(QIODevice::ReadOnly)) { 152 if (!file.open(QIODevice::ReadOnly)) {
153 SinkError() << "Failed to open the file: " << file.errorString() << path; 153 SinkError() << "Failed to open the file for reading: " << file.errorString() << path << " For property " << key;
154 return QByteArray(); 154 return QByteArray();
155 } 155 }
156 return file.readAll(); 156 return file.readAll();
@@ -161,7 +161,7 @@ void ApplicationDomainType::setBlobProperty(const QByteArray &key, const QByteAr
161 const auto path = Sink::temporaryFileLocation() + "/" + QUuid::createUuid().toString(); 161 const auto path = Sink::temporaryFileLocation() + "/" + QUuid::createUuid().toString();
162 QFile file(path); 162 QFile file(path);
163 if (!file.open(QIODevice::WriteOnly)) { 163 if (!file.open(QIODevice::WriteOnly)) {
164 SinkError() << "Failed to open the file: " << file.errorString() << path; 164 SinkError() << "Failed to open the file for writing: " << file.errorString() << path<< " For property " << key;
165 return; 165 return;
166 } 166 }
167 file.write(value); 167 file.write(value);