Commit 0b6f2ddf authored by Lukas Appelhans's avatar Lukas Appelhans

Exit when no packages were found

parent 2aeb5acb
......@@ -226,6 +226,7 @@ void SyncOperation::install(QUuid uuid, QList< Akabei::Package* > packages)
if (packages.isEmpty()) {
err << i18n("No appropriate packages found") << endl;
err.flush();
nextOperation();
return;
}
......@@ -515,6 +516,7 @@ void SyncOperation::updateNextDatabase()
void SyncOperation::databaseErrorTriggered(int error)
{
Q_UNUSED(error)
QTextStream err(stderr);
//FIXME: Show proper error message
err << i18n("There has been an error while updating %1!", static_cast<AkabeiClient::DatabaseHandler*>(QObject::sender())->name()) << endl;
......
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