diff options
Diffstat (limited to 'jsonpatch.py')
| -rw-r--r-- | jsonpatch.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/jsonpatch.py b/jsonpatch.py index 28dcd13..58fdfe8 100644 --- a/jsonpatch.py +++ b/jsonpatch.py @@ -387,7 +387,8 @@ class RemoveOperation(PatchOperation): try: del subobj[part] except (KeyError, IndexError) as ex: - raise JsonPatchConflict(str(ex)) + msg = "can't remove non-existent object '{0}'".format(part) + raise JsonPatchConflict(msg) return obj |
