Ticket #2354: invalid-url2.diff

File invalid-url2.diff, 980 bytes (added by nate, 13 years ago)

Oops - This compiles.

  • 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 if (fInfo->result == TR_MAKEMETA_URL)
     460                                        [alert setInformativeText: [NSString stringWithFormat: NSLocalizedString(@"Invalid URL",
     461                                                "Create torrent -> failed -> warning"), fInfo->errfile, strerror(fInfo->my_errno)]];
    459462                else //invalid url should have been caught before creating
    460463                    [alert setInformativeText: [NSString stringWithFormat: @"%@ (%d)",
    461464                        NSLocalizedString(@"An unknown error has occurred.", "Create torrent -> failed -> warning"), fInfo->result]];