Skip to content

Commit

Permalink
Return numeric error codes
Browse files Browse the repository at this point in the history
  • Loading branch information
eddoursul committed Sep 15, 2023
1 parent a6d950b commit cf45dfd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commandline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -881,14 +881,14 @@ std::optional<int> 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;
}


Expand Down

0 comments on commit cf45dfd

Please sign in to comment.