diff options
Diffstat (limited to 'common/storage_common.cpp')
-rw-r--r-- | common/storage_common.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/common/storage_common.cpp b/common/storage_common.cpp index 512a13f..2c23f97 100644 --- a/common/storage_common.cpp +++ b/common/storage_common.cpp | |||
@@ -66,7 +66,9 @@ qint64 Storage::maxRevision(const Akonadi2::Storage::Transaction &transaction) | |||
66 | r = revision.toLongLong(); | 66 | r = revision.toLongLong(); |
67 | return false; | 67 | return false; |
68 | }, [](const Error &error){ | 68 | }, [](const Error &error){ |
69 | std::cout << "Coultn'd find uid for revision "; | 69 | if (error.code != Akonadi2::Storage::NotFound) { |
70 | std::cout << "Coultn'd find the maximum revision" << std::endl; | ||
71 | } | ||
70 | }); | 72 | }); |
71 | return r; | 73 | return r; |
72 | } | 74 | } |
@@ -78,7 +80,7 @@ QByteArray Storage::getUidFromRevision(const Akonadi2::Storage::Transaction &tra | |||
78 | uid = value; | 80 | uid = value; |
79 | return false; | 81 | return false; |
80 | }, [revision](const Error &error){ | 82 | }, [revision](const Error &error){ |
81 | std::cout << "Coultn'd find uid for revision " << revision; | 83 | std::cout << "Coultn'd find uid for revision " << revision << std::endl; |
82 | }); | 84 | }); |
83 | return uid; | 85 | return uid; |
84 | } | 86 | } |
@@ -90,7 +92,7 @@ QByteArray Storage::getTypeFromRevision(const Akonadi2::Storage::Transaction &tr | |||
90 | type = value; | 92 | type = value; |
91 | return false; | 93 | return false; |
92 | }, [revision](const Error &error){ | 94 | }, [revision](const Error &error){ |
93 | std::cout << "Coultn'd find type for revision " << revision; | 95 | std::cout << "Coultn'd find type for revision " << revision << std::endl; |
94 | }); | 96 | }); |
95 | return type; | 97 | return type; |
96 | } | 98 | } |