diff --git a/src/IDF/Scm.php b/src/IDF/Scm.php index 1a3249f..8c98f4a 100644 --- a/src/IDF/Scm.php +++ b/src/IDF/Scm.php @@ -55,7 +55,7 @@ class IDF_Scm $cache = Pluf_Cache::factory(); if (null === ($res=$cache->get($key))) { $ll = exec($command, $output, $return); - if ($return != 0) { + if ($return != 0 and Pluf::f('debug', false)) { throw new IDF_Scm_Exception(sprintf('Error when running command: "%s", return code: %d', $command, $return)); } $cache->set($key, array($ll, $return, $output));