From ad9dd219cdceb206bc2348bd46d77e5e2f49698c Mon Sep 17 00:00:00 2001 From: Frank Warmerdam Date: Wed, 16 Jan 2002 17:50:05 +0000 Subject: [PATCH] Fix bug in error output. --- tools/tiffset.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/tools/tiffset.c b/tools/tiffset.c index 92a7cfcf..8e799776 100644 --- a/tools/tiffset.c +++ b/tools/tiffset.c @@ -1,5 +1,5 @@ /****************************************************************************** - * $Id: tiffset.c,v 1.2 2001-09-26 17:42:18 warmerda Exp $ + * $Id: tiffset.c,v 1.3 2002-01-16 17:50:05 warmerda Exp $ * * Project: libtiff tools * Purpose: Mainline for setting metadata in existing TIFF files. @@ -29,7 +29,10 @@ ****************************************************************************** * * $Log: tiffset.c,v $ - * Revision 1.2 2001-09-26 17:42:18 warmerda + * Revision 1.3 2002-01-16 17:50:05 warmerda + * Fix bug in error output. + * + * Revision 1.2 2001/09/26 17:42:18 warmerda * added TIFFRewriteDirectory * * Revision 1.1 2001/03/02 04:58:53 warmerda @@ -86,7 +89,8 @@ main(int argc, char* argv[]) if( id < 1 ) { - fprintf( stderr, "Field name %s not recognised.\n" ); + fprintf( stderr, "Field name %s not recognised.\n", + argv[arg_index+1] ); exit( -3 ); } @@ -112,7 +116,8 @@ main(int argc, char* argv[]) if( id < 1 ) { - fprintf( stderr, "Field name %s not recognised.\n" ); + fprintf( stderr, "Field name %s not recognised.\n", + argv[arg_index+1] ); exit( -3 ); }