use old error message
authorPhilipp Takacs <philipp@bureaucracy.de>
Sun, 8 May 2016 16:40:51 +0000 (18:40 +0200)
committerPhilipp Takacs <philipp@bureaucracy.de>
Sun, 8 May 2016 16:40:51 +0000 (18:40 +0200)
uip/scansbr.c

index 0495838..48837d7 100644 (file)
@@ -199,12 +199,15 @@ body:;
                                state = FILEEOF2;
                                goto finished;
                        }
                                state = FILEEOF2;
                                goto finished;
                        }
-                       compnum++;
-                       advise(NULL, "formate error in component #%d", compnum);
+                       state = FLD2;
+                       fprintf(stderr, innum ?
+                                       "??Format error (message %d) in " :
+                                       "??Format error in ",
+                                       outnum ? outnum : innum);
+                       fprintf(stderr, "component %d\n", compnum);
                        continue;
 
                case IOERR2:
                        continue;
 
                case IOERR2:
-handleerror:;
                        fprintf(stderr, innum ?
                                        "??Format error (message %d) in " :
                                        "??Format error in ",
                        fprintf(stderr, innum ?
                                        "??Format error (message %d) in " :
                                        "??Format error in ",