Skip to content

Commit

Permalink
Revise error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocobo1 committed Sep 1, 2023
1 parent 98c34ef commit a087b39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/torrentcreatordialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,11 +271,11 @@ void TorrentCreatorDialog::handleCreationSuccess(const Path &path, const Path &b

if (m_ui->checkStartSeeding->isChecked())
{
// Create save path temp data
const auto loadResult = BitTorrent::TorrentDescriptor::loadFromFile(path);
if (!loadResult)
{
QMessageBox::critical(this, tr("Torrent creation failed"), tr("Reason: Created torrent is invalid. It won't be added to download list."));
const QString message = tr("Add torrent to transfer list failed.") + u'\n' + tr("Reason: \"%1\"").arg(loadResult.error());
QMessageBox::critical(this, tr("Add torrent failed"), message);
return;
}

Expand Down

0 comments on commit a087b39

Please sign in to comment.