diff options
Diffstat (limited to 'lib/libpnm1.c')
-rw-r--r-- | lib/libpnm1.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libpnm1.c b/lib/libpnm1.c index 29fee13a..045b7afc 100644 --- a/lib/libpnm1.c +++ b/lib/libpnm1.c @@ -129,7 +129,8 @@ pnm_readpnminit(FILE * const fileP, break; default: - pm_error("bad magic number - not a ppm, pgm, or pbm file"); + pm_error("bad magic number 0x%x - not a PPM, PGM, PBM, or PAM file", + realFormat); } validateComputableSize(*colsP, *rowsP); } |