added error on redis connection failed