Merge "Remove extra blank space in ClientSide error msg"
This commit is contained in:
commit
d09bf88a2b
@ -89,7 +89,7 @@ def apply_jsonpatch(doc, patch):
|
||||
if p['op'] == 'add' and p['path'].count('/') == 1:
|
||||
if p['path'].lstrip('/') not in doc:
|
||||
msg = _('Adding a new attribute (%s) to the root of '
|
||||
' the resource is not allowed')
|
||||
'the resource is not allowed')
|
||||
raise wsme.exc.ClientSideError(msg % p['path'])
|
||||
return jsonpatch.apply_patch(doc, jsonpatch.JsonPatch(patch))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user