From 12fb55745db73e9f9ccbb7ebd6f936de77064aaf Mon Sep 17 00:00:00 2001 From: Zed Date: Mon, 1 Jun 2020 13:48:28 +0200 Subject: [PATCH] Quit with return code to indicate error --- src/redis_cache.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/redis_cache.nim b/src/redis_cache.nim index f381f25..d1b8f21 100644 --- a/src/redis_cache.nim +++ b/src/redis_cache.nim @@ -22,7 +22,7 @@ proc initRedisPool*(cfg: Config) = host=cfg.redisHost, port=cfg.redisPort) except OSError: echo "Failed to connect to Redis." - quit() + quit(1) template toKey(p: Profile): string = "p:" & toLower(p.username) template toKey(v: Video): string = "v:" & v.videoId