Skip to content

Commit 4305d69

Browse files
committed
修改错误输出
1 parent 14f4411 commit 4305d69

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/Plugin/Plugin.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,17 +83,12 @@ public static function install(\Composer\Script\Event $event) {
8383
}
8484

8585
private function changePermission($list) {
86-
$error = '';
8786
foreach ($list as $item) {
8887
try {
8988
chmod($item, 0777);
9089
} catch (\Throwable $e) {
91-
$error .= 'chmod 777 ' . $item . " fail, Please do it manually \n";
90+
$this->io->writeError('chmod 777 ' . $item . ' fail, Please do it manually');
9291
}
9392
}
94-
95-
if ($error) {
96-
throw new \Exception($error);
97-
}
9893
}
9994
}

0 commit comments

Comments
 (0)