mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-25 22:42:16 -05:00
Align error behaviour for invalid web config path with invalid asset path
This commit is contained in:
@@ -79,21 +79,19 @@ func (p Phoenix) getPayload() (payload []byte, err error) {
|
||||
|
||||
// try loading from file
|
||||
if _, err = os.Stat(p.config.Phoenix.Path); os.IsNotExist(err) {
|
||||
p.logger.Error().
|
||||
p.logger.Fatal().
|
||||
Err(err).
|
||||
Str("config", p.config.Phoenix.Path).
|
||||
Msg("Phoenix config doesn't exist")
|
||||
return
|
||||
Msg("phoenix config doesn't exist")
|
||||
}
|
||||
|
||||
payload, err = ioutil.ReadFile(p.config.Phoenix.Path)
|
||||
|
||||
if err != nil {
|
||||
p.logger.Error().
|
||||
p.logger.Fatal().
|
||||
Err(err).
|
||||
Str("config", p.config.Phoenix.Path).
|
||||
Msg("Failed to read custom config")
|
||||
|
||||
Msg("failed to read custom config")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user