diff --git a/files/enc.rb b/files/enc.rb index afb4768..2f6cf1d 100644 --- a/files/enc.rb +++ b/files/enc.rb @@ -444,7 +444,7 @@ def watch_and_send_facts(parallel) result = enc(certname) cache(certname, result) end - rescue TimeoutError, SocketError, Errno::EHOSTUNREACH, Errno::ECONNREFUSED, NodeRetrievalError, FactUploadError => e + rescue Timeout::Error, SocketError, Errno::EHOSTUNREACH, Errno::ECONNREFUSED, NodeRetrievalError, FactUploadError => e $stderr.puts "Serving cached ENC: #{e}" # Read from cache, we got some sort of an error. result = read_cache(certname)