mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-24 12:52:19 +09:00
Update more modules to throw exceptions
This commit is contained in:
parent
c1cbc5dbdb
commit
be1ce69073
21 changed files with 142 additions and 116 deletions
|
|
@ -70,7 +70,7 @@ class rssAdminController extends rss
|
|||
|
||||
if(isset($msg['error']))
|
||||
{
|
||||
return $this->setError($msg['error']);
|
||||
throw new Rhymix\Framework\Exception($msg['error']);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -98,7 +98,7 @@ class rssAdminController extends rss
|
|||
|
||||
if(!count($target_module_srls))
|
||||
{
|
||||
return $this->setError('msg_invalid_request');
|
||||
throw new Rhymix\Framework\Exceptions\InvalidRequest;
|
||||
}
|
||||
|
||||
foreach($target_module_srls as $module_srl)
|
||||
|
|
@ -144,7 +144,7 @@ class rssAdminController extends rss
|
|||
$config = getModel('rss')->getConfig();
|
||||
if(!$config->image)
|
||||
{
|
||||
return $this->setError('msg_invalid_request');
|
||||
throw new Rhymix\Framework\Exceptions\InvalidRequest;
|
||||
}
|
||||
|
||||
FileHandler::removeFile($config->image);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue