Exit after failed connection to Redis

This commit is contained in:
suckatrash 2022-03-26 23:07:15 -07:00
parent 3b6073933e
commit b4e89cd6cb
No known key found for this signature in database
GPG key ID: 1A9EE78B881BED99
2 changed files with 3 additions and 2 deletions

View file

@ -1657,8 +1657,9 @@ module Vmpooler
end
end
rescue Redis::CannotConnectError => e
$logger.log('s', "Cannot connect to the redis server: #{e}")
$logger.log('s', "Cannot connect to the redis server, Exiting!!!: #{e}")
raise
exit 1
end
end
end