Expose YAMLException from js-yaml #169
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I find
YAMLExceptions too big when the parsed front matter is big because they include the whole source text. I decided to reformat an error a bit, for that I had to catch the parsing error using the obvious approach:However, I was surprised when the error wasn't caught. It turned out I have my own
js-yamlof a different major version (4.1.0), so technically importedYAMLExceptionwas a different class.I think for cases like this, importing (at least)
YAMLExceptionfrom underlyinggray-matterwould be beneficial. Although, feel free to correct me if I'm doing something wrong. And thank you for the lib! :)P.S. My workaround: