yml: don’t crash when (trying to) merge anchors that aren’t dictionaries

Up until now, we only asserted the value being merged in was a
dictionary.

Now we do a proper check and return a real error message instead.

Closes #32
This commit is contained in:
Daniel Eklöf 2021-02-11 19:02:14 +01:00
parent 264c051232
commit 98a4789e26
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 44 additions and 9 deletions

View file

@ -13,6 +13,11 @@
### Deprecated
### Removed
### Fixed
* Crash when merging non-dictionary anchors in the YAML configuration
(https://codeberg.org/dnkl/yambar/issues/32).
### Security
### Contributors