Ticket #1736: makemeta.diff

File makemeta.diff, 1.3 KB (added by charles, 12 years ago)

add text for more makemeta error states

  • CreatorWindowController.m

     
    456456                else if (fInfo->result == TR_MAKEMETA_IO_WRITE)
    457457                    [alert setInformativeText: [NSString stringWithFormat: NSLocalizedString(@"Could not write \"%s\": %s.",
    458458                        "Create torrent -> failed -> warning"), fInfo->errfile, strerror(fInfo->my_errno)]];
    459                 else; //invalid url should have been caught before creating
     459                else if (fInfo->result == TR_MAKEMETA_URL) //invalid url should have been caught before creating
     460                    [alert setInformativeText: [NSString stringWithFormat: NSLocalizedString(@"Invalid Announce URL",
     461                        "Create torrent -> failed -> warning")]];
     462                else; // ?
     463                    [alert setInformativeText: [NSString stringWithFormat: NSLocalizedString(@"Unknown Error",
     464                        "Create torrent -> failed -> warning")]];
    460465               
    461466                [alert beginSheetModalForWindow: [self window] modalDelegate: self
    462467                        didEndSelector: @selector(failureSheetClosed:returnCode:contextInfo:) contextInfo: nil];