Commit 1d184a9f authored by Kaarle Ritvanen's avatar Kaarle Ritvanen

policy: fix error message on mandatory policies

parent 27e02c33
......@@ -81,7 +81,9 @@ function Policy:load()
end
function Policy:checkoptional()
if self.type ~= 'optional' then raise('Not an optional policy: '..name) end
if self.type ~= 'optional' then
raise('Not an optional policy: '..self.name)
end
end
function Policy:enable()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment