Skip to content

Commit

Permalink
✨ default values for error method
Browse files Browse the repository at this point in the history
  • Loading branch information
acidjazz committed Aug 31, 2018
1 parent f116fdd commit 55cf746
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MetApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ 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($key,$message) {
protected function error($key='unknown',$message='Unknown Error') {

$this->addError($key, __($message));

Expand Down

0 comments on commit 55cf746

Please sign in to comment.