Commit a4ea3bc1 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use qCritical()

parent 3803fddc
...@@ -366,19 +366,19 @@ int main(int argc, char *argv[]) ...@@ -366,19 +366,19 @@ int main(int argc, char *argv[])
const StorageFactory *const storageFactory = StorageFactoryRegistry::self()->getFactory(backend); const StorageFactory *const storageFactory = StorageFactoryRegistry::self()->getFactory(backend);
if (!storageFactory) { if (!storageFactory) {
qCritical("Could not create storage factory for %s.", qPrintable(backend)); qCritical() << "Could not create storage factory for " << qPrintable(backend);
return 1; return 1;
} }
Storage *const storage = storageFactory->createStorage(QStringList()); Storage *const storage = storageFactory->createStorage(QStringList());
if (!storage) { if (!storage) {
qCritical("Could not create storage object for %s.", qPrintable(backend)); qCritical() << "Could not create storage object for " << qPrintable(backend);
return 1; return 1;
} }
QFile out; QFile out;
if (!out.open(stdout, QIODevice::WriteOnly)) { if (!out.open(stdout, QIODevice::WriteOnly)) {
qCritical("Could not open stdout for writing: %s", qPrintable(out.errorString())); qCritical() << "Could not open stdout for writing: " << qPrintable(out.errorString());
return 1; return 1;
} }
......
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