mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-13 02:14:36 +00:00
updates
This commit is contained in:
1 parent
6e72889294
commit
0f50d1accd
36 files changed
+715
-273
No files matched your search
@@ -9,6 +9,7 @@ use Illuminate\Support\Str;
|
||||
function general_error_handler(\Throwable $e, $that = null, $isJson = false)
|
||||
{
|
||||
try {
|
||||
ray('ERROR OCCURED: ' . $e->getMessage());
|
||||
if ($e instanceof QueryException) {
|
||||
if ($e->errorInfo[0] === '23505') {
|
||||
throw new \Exception('Duplicate entry found.', '23505');
|
||||
@@ -29,7 +30,7 @@ function general_error_handler(\Throwable $e, $that = null, $isJson = false)
|
||||
'error' => $error->getMessage(),
|
||||
]);
|
||||
} else {
|
||||
// dump($error);
|
||||
ray($error);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user