diff --git a/src/commandline.cpp b/src/commandline.cpp index cae7dacc2..45870c37c 100644 --- a/src/commandline.cpp +++ b/src/commandline.cpp @@ -881,14 +881,14 @@ std::optional DownloadFileCommand::runPostOrganizer(OrganizerCore& core) if (!url.startsWith("https://")) { reportError( QObject::tr("Download URL must start with https://")); - return {}; + return 1; } log::debug("starting direct download from command line: {}", url.toStdString()); MessageDialog::showMessage(QObject::tr("Download started"), qApp->activeWindow(), false); core.downloadManager()->startDownloadURLs(QStringList() << url); - return {}; + return 0; }