Ignore:
Timestamp:
Nov 6, 2007, 2:51:36 PM (13 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Fixed bad file error handling, made dither and export errors more informative on program name
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/src/img2txt.c

    r1907 r1908  
    136136    if(!i)
    137137    {
    138         fprintf(stderr, "%s: unable to load %s\n", argv[0], argv[1]);
     138        fprintf(stderr, "%s: unable to load %s\n", argv[0], argv[argc-1]);
    139139        cucul_free_canvas(cv);
    140140        return 1;
     
    162162    if(cucul_set_dither_algorithm(i->dither, dither?dither:"fstein"))
    163163    {
    164         fprintf(stderr, "Can't dither image with algorithm '%s'\n", dither);
     164        fprintf(stderr, "%s: Can't dither image with algorithm '%s'\n", argv[0], dither);
    165165        unload_image(i);
    166166        cucul_free_canvas(cv);
     
    174174    if(!export)
    175175    {
    176         fprintf(stderr, "Can't export to format '%s'\n", format);
     176        fprintf(stderr, "%s: Can't export to format '%s'\n", argv[0], format);
    177177    }
    178178    else
Note: See TracChangeset for help on using the changeset viewer.