Use root namespace for Exception in catch block
This commit is contained in:
parent
4f7e2995c7
commit
c7ba577fae
|
|
@ -112,7 +112,7 @@ trait UploadableWidget
|
|||
'link' => MediaLibrary::url($filePath),
|
||||
'result' => 'success'
|
||||
]);
|
||||
} catch (Exception $ex) {
|
||||
} catch (\Exception $ex) {
|
||||
$response = Response::make($ex->getMessage(), 400);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue