فهرست منبع

More descriptive exceptions wording

Konstantin Tjuterev 13 سال پیش
والد
کامیت
e072607e90
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      src/Composer/Compiler.php
  2. 1 1
      src/Composer/Downloader/GitDownloader.php

+ 1 - 1
src/Composer/Compiler.php

@@ -37,7 +37,7 @@ class Compiler
 
 
         $process = new Process('git log --pretty="%h" -n1 HEAD');
         $process = new Process('git log --pretty="%h" -n1 HEAD');
         if ($process->run() != 0) {
         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());
         $this->version = trim($process->getOutput());
 
 

+ 1 - 1
src/Composer/Downloader/GitDownloader.php

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