Browse Source

Fix message when no composer file is found in a tag

Jordi Boggiano 13 năm trước cách đây
mục cha
commit
bcbdb97cc6
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/Composer/Repository/VcsRepository.php

+ 1 - 1
src/Composer/Repository/VcsRepository.php

@@ -118,7 +118,7 @@ class VcsRepository extends ArrayRepository
                 }
             } catch (\Exception $e) {
                 if ($debug) {
-                    $this->io->write('Skipped tag '.$tag.', '.$e->getMessage());
+                    $this->io->write('Skipped tag '.$tag.', '.($e instanceof TransportException ? 'no composer file was found' : $e->getMessage()));
                 }
                 continue;
             }