diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/phorkie/ForkRemote.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/phorkie/ForkRemote.php b/src/phorkie/ForkRemote.php index 78c3caa..7f6129d 100644 --- a/src/phorkie/ForkRemote.php +++ b/src/phorkie/ForkRemote.php @@ -3,6 +3,11 @@ namespace phorkie; class ForkRemote { + /** + * Contains error message when parse() failed + */ + public $error; + protected $url; /** @@ -90,7 +95,12 @@ class ForkRemote } } - return $count > 0; + if ($count > 0) { + return true; + } + + $this->error = 'No git:// clone URL found'; + return false; } /** |
