Skip to content

Commit 40a2046

Browse files
committed
enh(jspoint) simplify ResolveErr message
1 parent 7065494 commit 40a2046

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

graphtik/jsonpointer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ class ResolveError(KeyError):
110110

111111
def __str__(self):
112112
return (
113-
f"Failed resolving step (#{self.index}){self.part} of json pointer path {self.path!r}."
113+
f'Failed resolving step (#{self.index}) "{self.part}" of path {self.path!r}.'
114114
"\n Check debug logs."
115115
)
116116

@@ -211,7 +211,7 @@ def resolve_path(
211211
>>> resolve_path(dt, '/pi/BAD')
212212
Traceback (most recent call last):
213213
...
214-
graphtik.jsonpointer.ResolveError: Failed resolving step (#2)BAD of json pointer path '/pi/BAD'.
214+
graphtik.jsonpointer.ResolveError: Failed resolving step (#2) "BAD" of path '/pi/BAD'.
215215
Check debug logs.
216216
217217
@@ -445,7 +445,7 @@ def set_path_value(
445445
)
446446
else:
447447
raise ValueError(
448-
f"Failed setting step (#{i}){part} of json pointer path {path!r}!"
448+
f'Failed setting step (#{i}) "{part}" of path {path!r}!'
449449
"\n Check debug logs."
450450
)
451451

0 commit comments

Comments
 (0)