Commit f03aa51c authored by Kaarle Ritvanen's avatar Kaarle Ritvanen

mention policy file path in error message when reading fails

fixes #1449
parent b8a8482f
......@@ -125,7 +125,7 @@ function PolicySet:loadJSON(name, fname)
else
file, fname = open(name, self.importdirs)
end
if not file then error('Import failed: '..name) end
if not file then error('Unable to read policy file '..fname) end
local data = ''
for line in file:lines() do data = data..line end
......
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