Explorar o código

Quit with return code to indicate error

Zed %!s(int64=6) %!d(string=hai) anos
pai
achega
12fb55745d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/redis_cache.nim

+ 1 - 1
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