File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
include/jsoncons_ext/jsonpointer Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -951,7 +951,7 @@ namespace jsonpointer {
951
951
{
952
952
if (location.empty ())
953
953
{
954
- ec = jsonpointer_errc::expected_location ;
954
+ ec = jsonpointer_errc::cannot_remove_root ;
955
955
return ;
956
956
}
957
957
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ enum class jsonpointer_errc
56
56
argument_to_unflatten_invalid,
57
57
invalid_flattened_key,
58
58
invalid_uri_escaped_data,
59
- expected_location
59
+ cannot_remove_root
60
60
};
61
61
62
62
class jsonpointer_error_category_impl
@@ -93,8 +93,8 @@ class jsonpointer_error_category_impl
93
93
return " Argument to unflatten must be an object" ;
94
94
case jsonpointer_errc::invalid_flattened_key:
95
95
return " Flattened key is invalid" ;
96
- case jsonpointer_errc::expected_location :
97
- return " Expected location " ;
96
+ case jsonpointer_errc::cannot_remove_root :
97
+ return " Cannot remove root of target document " ;
98
98
default :
99
99
return " Unknown jsonpointer error" ;
100
100
}
You can’t perform that action at this time.
0 commit comments