Skip to content

Commit 5b06dc8

Browse files
authored
Merge pull request #1158 from newtoframework/patch-1
Update index.md
2 parents 41098c0 + bbf99e9 commit 5b06dc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/error-handling/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class CharacterResolver
4949
$droids = StarWarsData::droids();
5050

5151
if (!isset($droids[$args['droid_id']])) {
52-
$errors[] = sprintf('Could not find Droid#%d', $args['droid_id']);
52+
$errors[] = new UserError(sprintf('Could not find Droid#%d', $args['droid_id']));
5353
}
5454

5555
if (!empty($errors)) {

0 commit comments

Comments
 (0)