#1497 Show specific message for invalid YAML files (#1506)

* #1497 Throw dedicated exception for invalid YAML files and handle it on startup
- Wrap SnakeYAML exceptions when loading config.yml and commands.yml on startup into own exception type
- Handle exception type on startup with specific error message

* #1497 Fix inaccurate JavaDoc comment
This commit is contained in:
ljacqu
2018-02-23 23:31:22 +01:00
committed by GitHub
parent 7864bb06ac
commit 329657bd5f
10 changed files with 216 additions and 5 deletions
@@ -0,0 +1,5 @@
# File with invalid YAML
test:
abc: 'test'
def: 'Going to forget a quote here
jkl: 'Test test'
@@ -0,0 +1,4 @@
test:
abc: 'test'
def: 'All quotes are good here'
jkl: 'Test test'