Add login support, golangci-lint config
This commit is contained in:
12
domains/loginer/v1/checks.go
Normal file
12
domains/loginer/v1/checks.go
Normal file
@@ -0,0 +1,12 @@
|
||||
// NNM-Club torrent filess mass downloader
|
||||
// Created for Uploaders group
|
||||
// Copyright (c) 2012-2019 Vladimir "fat0troll" Hodakov
|
||||
|
||||
package loginerv1
|
||||
|
||||
// checkConfig checks if there's some errors in config file
|
||||
func checkConfig() {
|
||||
if c.Config.URL == "" || c.Config.Password == "" || c.Config.Username == "" {
|
||||
dlog.Fatal().Msg("Конфиг не заполнен или заполнен не до конца. Запустите программу с ключом -auth для авторизации.")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user