diff options
Diffstat (limited to '')
| -rw-r--r-- | src/main.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
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 | |||
| 9 | public: | 9 | public: |
| 10 | Param() : | 10 | Param() : |
| 11 | sFile("build.conf"), | 11 | sFile("build.conf"), |
| 12 | sCache("build.cache") | 12 | sCache("build.cache"), |
| 13 | bDebug( false ) | ||
| 13 | { | 14 | { |
| 14 | addHelpBanner("Build r?\n\n"); | 15 | addHelpBanner("Build r?\n\n"); |
| 15 | addParam("file", 'f', &sFile, | 16 | addParam("file", 'f', &sFile, |
| @@ -64,7 +65,16 @@ int main( int argc, char *argv[] ) | |||
| 64 | Builder bld( *prm.pViewer ); | 65 | Builder bld( *prm.pViewer ); |
| 65 | 66 | ||
| 66 | bld.setCache( prm.sCache ); | 67 | bld.setCache( prm.sCache ); |
| 67 | bld.load( prm.sFile.c_str() ); | 68 | try |
| 69 | { | ||
| 70 | bld.load( prm.sFile.c_str() ); | ||
| 71 | } | ||
| 72 | catch( BuildException &e ) | ||
| 73 | { | ||
| 74 | fputs( e.what(), stderr ); | ||
| 75 | fputs( "\n", stderr ); | ||
| 76 | return 1; | ||
| 77 | } | ||
| 68 | 78 | ||
| 69 | if( prm.bDebug ) | 79 | if( prm.bDebug ) |
| 70 | { | 80 | { |
