mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-23 00:47:21 -06:00
Show user friendly size in error
This commit is contained in:
@@ -108,7 +108,7 @@ TorrentInfo TorrentInfo::loadFromFile(const QString &path, QString *error) noexc
|
||||
|
||||
if (file.size() > MAX_TORRENT_SIZE) {
|
||||
if (error)
|
||||
*error = tr("File size exceeds max limit %1").arg(MAX_TORRENT_SIZE);
|
||||
*error = tr("File size exceeds max limit %1").arg(Utils::Misc::friendlyUnit(MAX_TORRENT_SIZE));
|
||||
return TorrentInfo();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user