Browse Source

Enhanced error handling in ReleaseController [ci skip]

tags/2.0.14
SilverFire - Dmitry Naumenko 7 years ago
parent
commit
e5b2d254c5
No known key found for this signature in database
GPG Key ID: 39DD917A92B270A
  1. 6
      build/controllers/ReleaseController.php

6
build/controllers/ReleaseController.php

@ -795,7 +795,11 @@ class ReleaseController extends Controller
protected function gitFetchTags($path)
{
chdir($path);
try {
chdir($path);
} catch (\yii\base\ErrorException $e) {
throw new Exception('Failed to getch git tags in ' . $path . ': ' . $e->getMessage());
}
exec('git fetch --tags', $output, $ret);
if ($ret != 0) {
throw new Exception('Command "git fetch --tags" failed with code ' . $ret);

Loading…
Cancel
Save