From 71c3c523aacb0f6986d50f4a7a2e5d604728a4c4 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Sun, 6 Aug 2006 19:42:22 +0000 Subject: A load of updates, most of these made me realize that I probably could do this whole thing a lot better. We'll see how that works out later, once I figure out how to do it better. --- src/main.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 009aac5..3ea4411 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -9,7 +9,8 @@ class Param : public ParamProc public: Param() : sFile("build.conf"), - sCache("build.cache") + sCache("build.cache"), + bDebug( false ) { addHelpBanner("Build r?\n\n"); addParam("file", 'f', &sFile, @@ -64,7 +65,16 @@ int main( int argc, char *argv[] ) Builder bld( *prm.pViewer ); bld.setCache( prm.sCache ); - bld.load( prm.sFile.c_str() ); + try + { + bld.load( prm.sFile.c_str() ); + } + catch( BuildException &e ) + { + fputs( e.what(), stderr ); + fputs( "\n", stderr ); + return 1; + } if( prm.bDebug ) { -- cgit v1.2.3