TbEditableSaver::checkErrors PHP Method

checkErrors() public method

errors as CHttpException
public checkErrors ( )
    public function checkErrors()
    {
        if ($this->model->hasErrors()) {
            $msg = array();
            foreach ($this->model->getErrors() as $attribute => $errors) {
                $msg = array_merge($msg, $errors);
            }
            //todo: show several messages. should be checked in x-editable js
            //$this->error(join("\n", $msg));
            $this->error($msg[0]);
        }
    }