mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-13 11:36:34 +00:00
Quit with return code to indicate error
This commit is contained in:
parent
e0943eeec8
commit
12fb55745d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue