proxmox-api-macro/src/api/method.rs: fix error message
This commit is contained in:
parent
5ae320f577
commit
5affb691b5
@ -559,7 +559,7 @@ impl TryFrom<JSONObject> for Access {
|
||||
|
||||
let permission = obj
|
||||
.remove("permission")
|
||||
.ok_or_else(|| format_err!(obj.span(), "missing `permissions` field"))?
|
||||
.ok_or_else(|| format_err!(obj.span(), "missing `permission` field"))?
|
||||
.try_into()?;
|
||||
|
||||
if !obj.is_empty() {
|
||||
|
Loading…
Reference in New Issue
Block a user