xielin 5 years ago
parent
commit
a7e4ce54dd
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/Http/Controllers/UploadController.php

+ 2 - 2
app/Http/Controllers/UploadController.php

@@ -39,8 +39,8 @@ class UploadController extends Controller
             }catch (\Exception $exception){
             }catch (\Exception $exception){
                 Log::error('upload-exception:'.$exception->getMessage());
                 Log::error('upload-exception:'.$exception->getMessage());
                 return $this->jsonError('图片上传失败,请重试');
                 return $this->jsonError('图片上传失败,请重试');
-            }catch (FatalThrowableError $fatalThrowableError){
-                Log::error('upload-error:'.$fatalThrowableError->getMessage());
+            }catch (\Throwable $throwable){
+                Log::error('upload-error:'.$throwable->getMessage());
                 return $this->jsonError('图片上传失败,请重试');
                 return $this->jsonError('图片上传失败,请重试');
             }
             }
         } else {
         } else {