Skip to content
Browse files

Merge pull request #14 from sbesedkov/master

Tiny fixes around 'required switches missing' exception
  • Loading branch information...
2 parents f639dde + e157d27 commit b4b695d9de1caf7984068dbccbaa41652eb0b6f3 @mrook mrook committed Apr 2, 2013
Showing with 2 additions and 1 deletion.
  1. +1 −1 SVN/Command.php
  2. +1 −0 SVN/Exception.php
View
2 SVN/Command.php
@@ -423,7 +423,7 @@ public function checkCommandRequirements()
$num_missing = count($missing);
if ($num_missing > 0) {
throw new VersionControl_SVN_Exception(
- 'svn command requires the following switch(es): ' . $missing,
+ 'svn command requires the following switch(es): ' . implode(', ', $missing),
VersionControl_SVN_Exception::SWITCH_MISSING
);
}
View
1 SVN/Exception.php
@@ -71,4 +71,5 @@ class VersionControl_SVN_Exception extends PEAR_Exception
const EXEC = 10;
const INVALID_SWITCH = 11;
const INVALID_OPTION = 12;
+ const SWITCH_MISSING = 13;
}

0 comments on commit b4b695d

Please sign in to comment.
Something went wrong with that request. Please try again.