Skip to content

Commit

Permalink
verbose non-existent path
Browse files Browse the repository at this point in the history
  • Loading branch information
vearutop committed Mar 19, 2018
1 parent 4554ad2 commit cc847b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JsonPointer.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public static function add(&$holder, $pathItems, $value, $recursively = true)
$ref = new \stdClass();
$ref = &$ref->{$key};
} else {
throw new Exception('Non-existent path');
throw new Exception('Non-existent path item: ' . $key);
}
} else {
if ($recursively && $ref === null) $ref = array();
Expand Down

0 comments on commit cc847b3

Please sign in to comment.