Add enum hooks to log parseHook jsony errors

This commit is contained in:
Zed
2022-11-27 17:24:29 +01:00
parent 6a7e56b613
commit da4d6eabdd
2 changed files with 28 additions and 0 deletions

View File

@@ -82,6 +82,8 @@ proc parseUnifiedCard*(json: string): Card =
component.parseMedia(card, result)
of buttonGroup:
discard
of unknown:
echo "ERROR: Unknown component type: ", json
case component.kind
of twitterListDetails: