add catch block

This commit is contained in:
wlx 2012-04-03 03:27:15 +00:00
parent a5bada218c
commit ecdb3d76a2
1 changed files with 7 additions and 0 deletions

View File

@ -2221,6 +2221,13 @@ class AuthorController extends Zend_Controller_Action
$data = array("commited"=>1,"error"=>$this->alertbox('ok','该版本已经成功提交,请等待数据中心进一步处理!')); $data = array("commited"=>1,"error"=>$this->alertbox('ok','该版本已经成功提交,请等待数据中心进一步处理!'));
$this->jsonexit($data); $this->jsonexit($data);
return true; return true;
}catch(Exception $e) {
$msg = "提交失败,请确认权限后重试";
if($this->debug>0)
{$msg .= $e->getMessage();}
$data = array("error"=>$this->alertbox('error',$msg));
$this->jsonexit($data);
return true;
} }
} }
} }