Skip to content

Commit cc847b3

Browse files
committed
verbose non-existent path
1 parent 4554ad2 commit cc847b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JsonPointer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public static function add(&$holder, $pathItems, $value, $recursively = true)
8484
$ref = new \stdClass();
8585
$ref = &$ref->{$key};
8686
} else {
87-
throw new Exception('Non-existent path');
87+
throw new Exception('Non-existent path item: ' . $key);
8888
}
8989
} else {
9090
if ($recursively && $ref === null) $ref = array();

0 commit comments

Comments
 (0)