Free-Nations-Region / CyborgianStates

A (Discord-) Bot for all needs of a Region in NationStates
MIT License
0 stars 1 forks source link

[BUG]: Missing or malformed appsetting "DiscordBotAdminUser" causes program to exit without warning #50

Closed bion33 closed 4 years ago

bion33 commented 4 years ago

Describe the bug When "DiscordBotAdminUser" in appsettings(.development).json is not filled or malformed (by entering a Discord username, for example), the application exits without logging any information and with exit code 0.

To Reproduce Steps to reproduce the behavior:

  1. Use the settings found in the default appsettings.json
  2. Run Program.cs

Expected behavior Program logs the issue and exits.

On which MessageHandler occured the error (e.g. Console, Discord)?: Console.

Additional context When debugging this on Linux, I received a SIGSEGV (segmentation fault) and heap dump.

Screenshots System information: system

bion33 commented 4 years ago

If the issue cannot be found or solved trough code, writing documentation for the settings (which are required, what is expected, and so on) would solve it too.

drehtisch commented 4 years ago

I was able to reproduce this. I'm looking at the issue.