mirror of
https://github.com/transmission/transmission
synced 2025-02-04 21:43:03 +00:00
in the creator window, give a string of what the error is, instead of the error number
This commit is contained in:
parent
70845fe104
commit
473b8095d5
1 changed files with 4 additions and 4 deletions
|
@ -335,11 +335,11 @@
|
||||||
[alert setAlertStyle: NSWarningAlertStyle];
|
[alert setAlertStyle: NSWarningAlertStyle];
|
||||||
|
|
||||||
if (fInfo->result == TR_MAKEMETA_IO_READ)
|
if (fInfo->result == TR_MAKEMETA_IO_READ)
|
||||||
[alert setInformativeText: [NSString stringWithFormat: NSLocalizedString(@"Could not read \"%s\" (%d)",
|
[alert setInformativeText: [NSString stringWithFormat: NSLocalizedString(@"Could not read \"%s\": %s.",
|
||||||
"Create torrent -> failed -> warning"), fInfo->errfile, fInfo->my_errno]];
|
"Create torrent -> failed -> warning"), fInfo->errfile, strerror(fInfo->my_errno)]];
|
||||||
else if (fInfo->result == TR_MAKEMETA_IO_WRITE)
|
else if (fInfo->result == TR_MAKEMETA_IO_WRITE)
|
||||||
[alert setInformativeText: [NSString stringWithFormat: NSLocalizedString(@"Could not write \"%s\" (%d)",
|
[alert setInformativeText: [NSString stringWithFormat: NSLocalizedString(@"Could not write \"%s\": %s.",
|
||||||
"Create torrent -> failed -> warning"), fInfo->errfile, fInfo->my_errno]];
|
"Create torrent -> failed -> warning"), fInfo->errfile, strerror(fInfo->my_errno)]];
|
||||||
else; //invalid url should have been caught before creating
|
else; //invalid url should have been caught before creating
|
||||||
|
|
||||||
[alert beginSheetModalForWindow: [self window] modalDelegate: self
|
[alert beginSheetModalForWindow: [self window] modalDelegate: self
|
||||||
|
|
Loading…
Reference in a new issue