1
0
Fork 0
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:
Mitchell Livingston 2008-03-28 15:30:26 +00:00
parent 70845fe104
commit 473b8095d5

View file

@ -335,11 +335,11 @@
[alert setAlertStyle: NSWarningAlertStyle];
if (fInfo->result == TR_MAKEMETA_IO_READ)
[alert setInformativeText: [NSString stringWithFormat: NSLocalizedString(@"Could not read \"%s\" (%d)",
"Create torrent -> failed -> warning"), fInfo->errfile, fInfo->my_errno]];
[alert setInformativeText: [NSString stringWithFormat: NSLocalizedString(@"Could not read \"%s\": %s.",
"Create torrent -> failed -> warning"), fInfo->errfile, strerror(fInfo->my_errno)]];
else if (fInfo->result == TR_MAKEMETA_IO_WRITE)
[alert setInformativeText: [NSString stringWithFormat: NSLocalizedString(@"Could not write \"%s\" (%d)",
"Create torrent -> failed -> warning"), fInfo->errfile, fInfo->my_errno]];
[alert setInformativeText: [NSString stringWithFormat: NSLocalizedString(@"Could not write \"%s\": %s.",
"Create torrent -> failed -> warning"), fInfo->errfile, strerror(fInfo->my_errno)]];
else; //invalid url should have been caught before creating
[alert beginSheetModalForWindow: [self window] modalDelegate: self