Better errors during config load
This commit is contained in:
parent
bd0b668c0d
commit
a02531a16c
@ -44,7 +44,7 @@ namespace NadekoBot.Services.Impl
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
var configBuilder = new ConfigurationBuilder();
|
var configBuilder = new ConfigurationBuilder();
|
||||||
configBuilder.AddJsonFile(credsFileName)
|
configBuilder.AddJsonFile(credsFileName, true)
|
||||||
.AddEnvironmentVariables("NadekoBot_");
|
.AddEnvironmentVariables("NadekoBot_");
|
||||||
|
|
||||||
var data = configBuilder.Build();
|
var data = configBuilder.Build();
|
||||||
@ -78,7 +78,8 @@ namespace NadekoBot.Services.Impl
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_log.Warn(ex);
|
_log.Fatal(ex.Message);
|
||||||
|
_log.Fatal(ex);
|
||||||
throw;
|
throw;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user