From e2c430b237da5c0229fd8e0832eedc3b85045ec0 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 12 Sep 2006 17:30:23 +0000 Subject: Added cache functionality, which is really nice, things go much faster now. --- src/performcommand.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/performcommand.cpp') diff --git a/src/performcommand.cpp b/src/performcommand.cpp index f6da4ac..5a9e746 100644 --- a/src/performcommand.cpp +++ b/src/performcommand.cpp @@ -1,5 +1,6 @@ #include "performcommand.h" #include "plugger.h" +#include "build.h" PluginInterface2(command, PerformCommand, Perform, "Mike Buland", 0, 1 ); @@ -20,6 +21,11 @@ Perform *PerformCommand::duplicate( Build &bld, const std::string &cont, VarMap void PerformCommand::execute( Build &bld ) { - system( lParam.front().c_str() ); + int n = system( lParam.front().c_str() ); + if( n != 0 ) + throw BuildException( + "Command exited with error code %d.", + WEXITSTATUS(n) + ); } -- cgit v1.2.3