improved error message

This commit is contained in:
h_vogt 2011-08-19 20:30:18 +00:00
parent 6a1f801038
commit 56229ce907
2 changed files with 8 additions and 3 deletions

View File

@ -1,5 +1,5 @@
2011-08-19 Holger Vogt
* rawfile.c: code beautified
* rawfile.c: code beautified, 'strange line' error improved
2011-08-14 Robert Larice
* src/frontend/postsc.c :

View File

@ -310,6 +310,11 @@ raw_read(char *name) {
fprintf(cp_err, "\nASCII raw file\n");
break;
}
else if (ciprefix("binary:", buf)) {
binary = TRUE;
rewind(fp); /* rewind */
break;
}
}
if (binary) {
@ -678,10 +683,10 @@ raw_read(char *name) {
}
} else {
s = buf;
skip(s);
// skip(s);
if (*s) {
fprintf(cp_err,
"Error: strange line in rawfile;\n\t\"%s\"\nload aborted.\n", s);
"Error: strange line in rawfile:\n\"%s\"\nload aborted.\n", s);
return (NULL);
}
}