aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/buildparser.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/buildparser.cpp b/src/buildparser.cpp
index e391523..125a31e 100644
--- a/src/buildparser.cpp
+++ b/src/buildparser.cpp
@@ -23,6 +23,10 @@ void BuildParser::load( const Bu::FString &sFile )
23 23
24 sFilename.push( sFile ); 24 sFilename.push( sFile );
25 FILE *fIn = fopen( sFile.getStr(), "rt" ); 25 FILE *fIn = fopen( sFile.getStr(), "rt" );
26 if( fIn == NULL )
27 {
28 throw Bu::ExceptionBase("Cannot open file: %s", sFile.getStr() );
29 }
26 build_lex_init( &scanner ); 30 build_lex_init( &scanner );
27 // build_set_debug( true, scanner ); 31 // build_set_debug( true, scanner );
28 build_set_in( fIn, scanner ); 32 build_set_in( fIn, scanner );