1
uploader_tools/internal/services/loginer/checks.go
Vladimir Hodakov 32a2262e8c
Refactor and copyrights
Move domains to internal/services, remove unnecessary versioning for services.
Change copyright year.
2021-12-20 16:53:38 +04:00

13 lines
506 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// NNM-Club torrent files mass downloader
// Created for Uploaders group
// Copyright (c) 2012-2022 Vladimir "fat0troll" Hodakov
package loginer
// 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 для авторизации.")
}
}