-
-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Labels
Description
I use casbin.postgresql adapter
local ok, err = pcall(function()
local a = Adapter:new(pg_conf, "auth_casbin_rule")
local ef = Enforcer:new("/usr/local/openresty/nginx/conf/lua/casbin/rbac_model_dom.conf", a)
ef:loadPolicy()
end)
when I use a wrong password in pg_conf, it will get a error in error.log file,
but I can't get the error with pcall like above, it always get ok.
Reactions are currently unavailable