Merge branch 'master' of https://github.com/JaguarJack/catch-admin
This commit is contained in:
commit
edfc85848c
@ -46,9 +46,15 @@ class ModuleInstall
|
||||
*/
|
||||
protected function installWithTitle(string $title): void
|
||||
{
|
||||
$installer = CatchAdmin::getModuleInstaller($title);
|
||||
try {
|
||||
$installer = CatchAdmin::getModuleInstaller($title);
|
||||
|
||||
$installer->install();
|
||||
$installer->install();
|
||||
} catch (\Exception|\Throwable $e) {
|
||||
CatchAdmin::deleteModulePath($title);
|
||||
|
||||
throw new FailedException('安装失败: ' . $e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user