aboutsummaryrefslogtreecommitdiff
path: root/src/build.l
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-08-04 20:37:14 +0000
committerMike Buland <eichlan@xagasoft.com>2006-08-04 20:37:14 +0000
commiteccf96035df06287a4a08146741772c88545d76a (patch)
tree735dffc3f7615f950f0ab1cdc16e2c0f49f28f4f /src/build.l
parent395a6409a3f65d7c3c395bf2adae1c0c8caa7c5b (diff)
downloadbuild-eccf96035df06287a4a08146741772c88545d76a.tar.gz
build-eccf96035df06287a4a08146741772c88545d76a.tar.bz2
build-eccf96035df06287a4a08146741772c88545d76a.tar.xz
build-eccf96035df06287a4a08146741772c88545d76a.zip
Updated error reporting, fixed the command line params, they work now.
Diffstat (limited to 'src/build.l')
-rw-r--r--src/build.l4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/build.l b/src/build.l
index 620f9db..540af46 100644
--- a/src/build.l
+++ b/src/build.l
@@ -113,7 +113,9 @@ void Builder::scanBegin()
113{ 113{
114 yy_flex_debug = false; 114 yy_flex_debug = false;
115 if( !(yyin = fopen( file.c_str(), "r" )) ) 115 if( !(yyin = fopen( file.c_str(), "r" )) )
116 fprintf( stderr, "cannot open %s\n", file.c_str() ); 116 {
117 error( std::string("cannot open file: ") + file );
118 }
117} 119}
118 120
119void Builder::scanEnd() 121void Builder::scanEnd()