Watch
1
0
Fork
You've already forked nitter
0
mirror of https://github.com/zedeus/nitter synced 2026-11-22 12:57:19 +00:00

Quit with return code to indicate error

This commit is contained in:
Zed 2020-06-01 13:48:28 +02:00
commit 12fb55745d

View file

@ -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