summaryrefslogtreecommitdiff
path: root/colm/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'colm/main.cc')
-rw-r--r--colm/main.cc10
1 files changed, 7 insertions, 3 deletions
diff --git a/colm/main.cc b/colm/main.cc
index 1a084555..25a2c074 100644
--- a/colm/main.cc
+++ b/colm/main.cc
@@ -113,12 +113,16 @@ ostream &error( const InputLoc &loc )
/* Keep the error count. */
gblErrorCount += 1;
+ if ( loc.fileName != 0 )
+ cerr << loc.fileName << ":";
+ else
+ cerr << "<input>:";
+
if ( loc.line == -1 ) {
- cerr << "error: INTERNAL: ";
+ cerr << "INT: ";
}
else {
- cerr << "error: " << inputFileName << ":" <<
- loc.line << ":" << loc.col << ": ";
+ cerr << loc.line << ":" << loc.col << ": ";
}
return cerr;
}