mirror of
https://github.com/m1k1o/neko.git
synced 2025-08-04 01:09:27 +02:00
add config file checking.
This commit is contained in:
parent
916222b6df
commit
27b1ca54c0
1 changed files with 5 additions and 1 deletions
|
@ -123,7 +123,11 @@ func init() {
|
|||
if file == "" {
|
||||
logger.Warn().Msg("preflight complete without config file")
|
||||
} else {
|
||||
logger.Info().Msg("preflight complete")
|
||||
if _, err := os.Stat(config); os.IsNotExist(err) {
|
||||
logger.Error().Msg("preflight complete with nonexistent config file")
|
||||
} else {
|
||||
logger.Info().Msg("preflight complete")
|
||||
}
|
||||
}
|
||||
|
||||
neko.Service.Configs.Root.Set()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue