소스 검색

Quit with return code to indicate error

Zed 6 년 전
부모
커밋
12fb55745d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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