proxmox-api-macro/src/api/method.rs: fix error message

This commit is contained in:
Dietmar Maurer 2020-04-17 15:28:49 +02:00
parent 5ae320f577
commit 5affb691b5

View File

@ -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() {