aboutsummaryrefslogtreecommitdiff
path: root/src/performcommand.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/performcommand.cpp')
-rw-r--r--src/performcommand.cpp8
1 files changed, 7 insertions, 1 deletions
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 @@
1#include "performcommand.h" 1#include "performcommand.h"
2#include "plugger.h" 2#include "plugger.h"
3#include "build.h"
3 4
4PluginInterface2(command, PerformCommand, Perform, "Mike Buland", 0, 1 ); 5PluginInterface2(command, PerformCommand, Perform, "Mike Buland", 0, 1 );
5 6
@@ -20,6 +21,11 @@ Perform *PerformCommand::duplicate( Build &bld, const std::string &cont, VarMap
20 21
21void PerformCommand::execute( Build &bld ) 22void PerformCommand::execute( Build &bld )
22{ 23{
23 system( lParam.front().c_str() ); 24 int n = system( lParam.front().c_str() );
25 if( n != 0 )
26 throw BuildException(
27 "Command exited with error code %d.",
28 WEXITSTATUS(n)
29 );
24} 30}
25 31