Update document, comment, file modules to throw exceptions

This commit is contained in:
Kijin Sung 2018-09-05 23:55:50 +09:00
parent 5be05dd875
commit ad00ac800b
11 changed files with 142 additions and 110 deletions

View file

@ -76,7 +76,7 @@ class fileAdminController extends file
{
if ($config->allowed_filesize > 2047 || $config->allowed_attach_size > 2047)
{
return $this->setError('msg_32bit_max_2047mb');
throw new Rhymix\Framework\Exception('msg_32bit_max_2047mb');
}
}
@ -125,7 +125,7 @@ class fileAdminController extends file
{
if ($file_config->allowed_filesize > 2047 || $file_config->allowed_attach_size > 2047)
{
return $this->setError('msg_32bit_max_2047mb');
throw new Rhymix\Framework\Exception('msg_32bit_max_2047mb');
}
}