From 5a6c402d1e736f69241221d9609a9b55d473bcc3 Mon Sep 17 00:00:00 2001 From: Francois Donnet Date: Thu, 10 Apr 2003 12:15:43 +0000 Subject: [PATCH] *** empty log message *** --- alliance/src/vbl/src/vbl_util.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/alliance/src/vbl/src/vbl_util.c b/alliance/src/vbl/src/vbl_util.c index cb0bed71..96045871 100644 --- a/alliance/src/vbl/src/vbl_util.c +++ b/alliance/src/vbl/src/vbl_util.c @@ -259,19 +259,22 @@ char *str1; { VBL_ERRFLG++; + if (code < 100) (void)fprintf (stderr,"Error %d line %ld in file %s :",code,VBL_LINNUM, VBL_FILENAME); + else + { #if 0 /* Francois Donnet 10/04/2003: I watch all calls to this function. * all calls with argument code >= 100 come from parser vbl_bcomp_y.y * which defines VBL_LINNUM and VBL_FILENAME * Frustrating not to know the line of user error! */ - else - { if (code < 200) (void)fprintf (stderr,"Error %d :",code); - } +#else + (void)fprintf (stderr,"Error %d line %ld in file %s :",code,VBL_LINNUM, VBL_FILENAME); #endif + } switch (code) {