Added permission rescue for iptable #2348

This commit is contained in:
Priit Tark 2015-06-01 13:28:59 +03:00
parent 56d1cc6e76
commit f56894d973

View file

@ -8,6 +8,8 @@ module Iptable
end
rescue Errno::ENOENT => e
logger.error "ERROR: cannot open #{counter_proc}: #{e}"
rescue Errno::EACCES => e
logger.error "ERROR: no permission #{counter_proc}: #{e}"
rescue IOError => e
logger.error "ERROR: cannot write #{ip} to #{counter_proc}: #{e}"
end