1
0
Fork 0

More descriptive exceptions wording

pull/400/head
Konstantin Tjuterev 2012-03-06 19:21:45 +02:00
parent eafd28b083
commit e072607e90
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ class Compiler
$process = new Process('git log --pretty="%h" -n1 HEAD');
if ($process->run() != 0) {
throw new \RuntimeException('The git binary cannot be found.');
throw new \RuntimeException('The git binary cannot be found or compile was run not inside git repository folder.');
}
$this->version = trim($process->getOutput());

View File

@ -60,7 +60,7 @@ class GitDownloader extends VcsDownloader
}
if (trim($output)) {
throw new \RuntimeException('Source directory has uncommitted changes');
throw new \RuntimeException('Source directory ' . $path . ' has uncommitted changes');
}
}
}