summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Mollekopf <mollekopf@kolabsys.com>2012-08-10 16:13:30 (GMT)
committerChristian Mollekopf <mollekopf@kolabsys.com>2012-08-10 16:13:30 (GMT)
commite73db163b6d998fcd48a34858bb373323a239558 (patch)
treedcc47a88609665b2e9efa1496e1532c8da38d806
parentb885ed7a0d0f6ec9d85163da1289f5f238703bf2 (diff)
downloadkolab-utils-e73db163b6d998fcd48a34858bb373323a239558.tar.gz
Use errors instead of warnings.
-rw-r--r--upgradetool/kolabformatupgradejob.cpp8
-rw-r--r--upgradetool/upgradeutilities.cpp3
2 files changed, 6 insertions, 5 deletions
diff --git a/upgradetool/kolabformatupgradejob.cpp b/upgradetool/kolabformatupgradejob.cpp
index 9a8a302..4d5bc6d 100644
--- a/upgradetool/kolabformatupgradejob.cpp
+++ b/upgradetool/kolabformatupgradejob.cpp
@@ -52,7 +52,7 @@ void KolabFormatUpgradeJob::start()
void KolabFormatUpgradeJob::onSelectDone(KJob *job)
{
if ( job->error() ) {
- Warning() << job->errorString();
+ Error() << job->errorString();
emitResult();
return;
}
@@ -96,7 +96,7 @@ void KolabFormatUpgradeJob::onHeadersReceived( const QString &mailBox,
//TODO implement different target folder
KMime::Message::Ptr msg = Kolab::Upgrade::upgradeMessage(message);
if (!msg.get()) {
- Warning() << "failed to convert message with uid " << QString::number(uids[number]);
+ Error() << "failed to convert message with uid " << QString::number(uids[number]);
continue;
}
seqJob->addSubjob(new MessageModifyJob(msg, mailBox, flags[number], uids[number], m_session, this));
@@ -106,7 +106,7 @@ void KolabFormatUpgradeJob::onHeadersReceived( const QString &mailBox,
void KolabFormatUpgradeJob::onHeadersFetchDone( KJob *job )
{
if ( job->error() ) {
- Warning() << job->errorString();
+ Error() << job->errorString();
emitResult();
return;
}
@@ -123,7 +123,7 @@ void KolabFormatUpgradeJob::onModifyFinished( KJob *job )
{
// Debug() << "upgrade done";
if ( job->error() ) {
- Warning() << job->errorString();
+ Error() << job->errorString();
}
emitResult();
}
diff --git a/upgradetool/upgradeutilities.cpp b/upgradetool/upgradeutilities.cpp
index bd9333b..1527e89 100644
--- a/upgradetool/upgradeutilities.cpp
+++ b/upgradetool/upgradeutilities.cpp
@@ -23,6 +23,7 @@
#include <kolabevent.h>
#include <kolabformat.h>
+#include <kolab/errorhandler.h>
namespace Kolab {
namespace Upgrade {
@@ -50,7 +51,7 @@ KMime::Message::Ptr upgradeMessage(KMime::Message::Ptr msg)
}
case Kolab::InvalidObject:
//TODO handle configuration objects
- kWarning() << "failed to read mime file";
+ Error() << "failed to read mime file";
}
return KMime::Message::Ptr();
}