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
1 changed files with 4 additions and 4 deletions

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