Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Add error handing for front matter formatting errors #37

Open
refactorsaurusrex opened this issue Jan 29, 2020 · 0 comments
Open

Add error handing for front matter formatting errors #37

refactorsaurusrex opened this issue Jan 29, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@refactorsaurusrex
Copy link
Owner

Summary

It's easy to make a formatting error to the yaml front matter that goes unnoticed until all journal commands start failing due to a parsing error. I recently encountered this problem because I had manually written a readme tag as a yaml array rather than as a scalar value.

To address this situation, all cmdlets should catch all entries that cannot be correctly parsed and display a list to the user. The list should include the file path of the entry, the error, and instructions to fix.

@refactorsaurusrex refactorsaurusrex added the enhancement New feature or request label Jan 29, 2020
@refactorsaurusrex refactorsaurusrex self-assigned this Jan 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant