We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4554ad2 commit cc847b3Copy full SHA for cc847b3
src/JsonPointer.php
@@ -84,7 +84,7 @@ public static function add(&$holder, $pathItems, $value, $recursively = true)
84
$ref = new \stdClass();
85
$ref = &$ref->{$key};
86
} else {
87
- throw new Exception('Non-existent path');
+ throw new Exception('Non-existent path item: ' . $key);
88
}
89
90
if ($recursively && $ref === null) $ref = array();
0 commit comments