Skip to content

Commit 30a50e4

Browse files
feat: ✨ include error type and add red color via rich (#246)
*Rebase and merge after #244 # Description I noticed that we were suppressing printing the error type in our custom exception hook for DataPackage errors. I think it would be useful to see the type of error so I added that here. While doing that, I thought it could also help to colorize this error the same as the carets, to help visually make the connection that the carets are pointing to where in the code the error occurred. Input: ```zsh uv run python -c 'import check_datapackage as cdp; cdp.check({"resources": [{"title": "Title", "name": 123}]}, error=True)' ``` Output before this PR (after #244): <img width="770" height="262" alt="image" src="https://github.com/user-attachments/assets/ec7ddd99-b6be-4289-b3b0-79223ebf8073" /> Output after this PR: <img width="770" height="262" alt="image" src="https://github.com/user-attachments/assets/32b30b7a-0d3c-4477-8866-104ef73a5a6e" /> Potentially closes #211 unless we want to keep that open for further discussion. Needs a quick review. ## Checklist - [ ] Formatted Markdown - [x] Ran `just run-all` --------- Co-authored-by: Luke W. Johnston <lwjohnst86@users.noreply.github.com>
1 parent e07fb20 commit 30a50e4

File tree

0 file changed

+0
-0
lines changed

    0 file changed

    +0
    -0
    lines changed

    0 commit comments

    Comments
     (0)