always print an error message if an image cannot be opened

SVN revision: 12237
This commit is contained in:
Tilman Sauerbeck 2004-11-21 17:35:22 +00:00
parent 36b2e5d51a
commit fd7e6bcbc1
1 changed files with 4 additions and 1 deletions

View File

@ -125,7 +125,10 @@ main(int argc, char **argv)
{
no++;
if (no == argc)
exit(0);
{
fprintf(stderr, "Image format not available\n");
exit(0);
}
file = argv[no];
image_width = 0;
im = imlib_load_image(file);