Skip to content

Commit

Permalink
Improved 400 error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
eldadfux committed Aug 22, 2023
1 parent 0969d42 commit bdd42ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ protected function validate(string $key, array $param, mixed $value): void
}

if (!$validator->isValid($value)) {
throw new Exception('Invalid ' . $key . ': ' . $validator->getDescription(), 400);
throw new Exception('Invalid `' . $key . '` param: ' . $validator->getDescription(), 400);
}
}

Expand Down

0 comments on commit bdd42ef

Please sign in to comment.