diff --git a/PHPCI/Command/DaemoniseCommand.php b/PHPCI/Command/DaemoniseCommand.php
index 915890bd..0bcd42f6 100644
--- a/PHPCI/Command/DaemoniseCommand.php
+++ b/PHPCI/Command/DaemoniseCommand.php
@@ -87,7 +87,8 @@ class DaemoniseCommand extends Command
try {
$buildCount = $runner->run($emptyInput, $output);
} catch (\Exception $e) {
- var_dump($e);
+ $output->writeln('Exception: ' . $e->getMessage() . '');
+ $output->writeln('Line: ' . $e->getLine() . ' - File: ' . $e->getFile() . '');
}
if (0 == $buildCount && $this->sleep < 15) {
diff --git a/PHPCI/Helper/WindowsCommandExecutor.php b/PHPCI/Helper/WindowsCommandExecutor.php
index aa01fea4..a1d0889f 100644
--- a/PHPCI/Helper/WindowsCommandExecutor.php
+++ b/PHPCI/Helper/WindowsCommandExecutor.php
@@ -22,6 +22,9 @@ class WindowsCommandExecutor extends BaseCommandExecutor
*/
protected function findGlobalBinary($binary)
{
- return trim(shell_exec('where ' . $binary));
+ $command = sprintf('where %s', $binary);
+ $result = shell_exec($command);
+
+ return trim($result);
}
}