Add specific exception for project list file read failure
[gitphp.git] / include / git / projectlist / ProjectListFile.class.php
blob:a/include/git/projectlist/ProjectListFile.class.php -> blob:b/include/git/projectlist/ProjectListFile.class.php
--- a/include/git/projectlist/ProjectListFile.class.php
+++ b/include/git/projectlist/ProjectListFile.class.php
@@ -120,7 +120,7 @@
 		$fileString = file_get_contents($this->projectConfig);
 		
 		if ($fileString === false) {
-			throw new GitPHP_MessageException(sprintf(__('Failed to open project list file %1$s'), $this->projectConfig));
+			throw new GitPHP_ProjectListFileReadException($this->projectConfig);
 		}
 
 		$this->fileContents = array();

comments