This commit is contained in:
2021-03-30 11:56:29 +08:00
parent 4171727784
commit 482f593e3b
21 changed files with 40 additions and 24 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ namespace {$namespace};
$import = $this->getImports($path['path'] . '/' . $managerName . 'Controller.php', $class);
} catch (\Throwable $Exception) {
exit(logger()->addError($Exception));
exit(logger()->addError($Exception, 'throwable'));
}
} else {
$import = "use Snowflake;
+1 -1
View File
@@ -42,7 +42,7 @@ namespace App\Http\Interceptor;
$html .= $this->getImports($file, $class);
} catch (\Throwable $exception) {
return logger()->addError($exception);
return logger()->addError($exception, 'throwable');
}
} else {
$html .= '
+1 -1
View File
@@ -68,7 +68,7 @@ namespace ' . $namespace . ';
$html .= $imports . PHP_EOL;
}
} catch (\Throwable $e) {
logger()->error($e->getMessage());
logger()->addError($e,'throwable');
}
}