diff --git a/src/MetApiController.php b/src/MetApiController.php index 36c5cc9..6035608 100644 --- a/src/MetApiController.php +++ b/src/MetApiController.php @@ -150,11 +150,9 @@ protected function addError($type,$message,$file=null,$line=null) * returns $this->errors w/ no view, transformer and an error code of 500 */ - protected function error($line=false) { + protected function error($key,$message) { - if ($line !== false) { - $this->addError($line, __($line)); - } + $this->addError($key, __($message)); return $this->render(['errors' => $this->errors], false, false, 500); }