Update Upload.php

This commit is contained in:
Anyon 2019-12-23 15:37:06 +08:00
parent 572e646985
commit bc8d312f22

View File

@ -147,8 +147,8 @@ class Upload extends Controller
{
try {
return $this->request->file('file');
} catch (\Exception $e) {
$this->error(lang($e->getMessage()));
} catch (\Exception $exception) {
$this->error(lang($exception->getMessage()));
}
}