fix error message
This commit is contained in:
parent
7a6e1912f7
commit
6f689d54ec
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ M.ret_code = ngx.HTTP_FORBIDDEN
|
||||||
|
|
||||||
function M.new(template_path, redirect_location, ret_code)
|
function M.new(template_path, redirect_location, ret_code)
|
||||||
if template_path == nil then
|
if template_path == nil then
|
||||||
return "ban template file variable is empty, will ban without template"
|
return "BAN_TEMPLATE_PATH variable is empty, will ban without template"
|
||||||
end
|
end
|
||||||
if utils.file_exist(template_path) == false then
|
if utils.file_exist(template_path) == false then
|
||||||
return "ban template file doesn't exist, will ban without template"
|
return "ban template file doesn't exist, will ban without template"
|
||||||
|
|
Loading…
Add table
Reference in a new issue