We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 41098c0 + bbf99e9 commit 5b06dc8Copy full SHA for 5b06dc8
docs/error-handling/index.md
@@ -49,7 +49,7 @@ class CharacterResolver
49
$droids = StarWarsData::droids();
50
51
if (!isset($droids[$args['droid_id']])) {
52
- $errors[] = sprintf('Could not find Droid#%d', $args['droid_id']);
+ $errors[] = new UserError(sprintf('Could not find Droid#%d', $args['droid_id']));
53
}
54
55
if (!empty($errors)) {
0 commit comments