mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 21:33:27 -07:00
Show user friendly size in error
This commit is contained in:
parent
11da8b82e8
commit
7b006a47ba
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ TorrentInfo TorrentInfo::loadFromFile(const QString &path, QString *error) noexc
|
||||||
|
|
||||||
if (file.size() > MAX_TORRENT_SIZE) {
|
if (file.size() > MAX_TORRENT_SIZE) {
|
||||||
if (error)
|
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();
|
return TorrentInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue