diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-08-13 19:03:37 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-08-13 19:03:37 +0300 |
commit | 9b3b0087512614d13e8c3b950041101ab649b786 (patch) | |
tree | 8dbf69f30988038b9907cd2462790ee2d3790fb3 /subplot.md | |
parent | 60b5a9a313bec0a6e475f9c16380977ed1c7eafb (diff) | |
download | subplot-9b3b0087512614d13e8c3b950041101ab649b786.tar.gz |
feat: make errors have a source error
When errors have a source, i.e., an underlying error, it results in
better error messages to the user.
Also, refactor the way the source chain is printed, to code that is
clearer to me.
I will need this to for loading document metadata from an external
YAML file.
Sponsored-by: author
Diffstat (limited to 'subplot.md')
-rw-r--r-- | subplot.md | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -2399,7 +2399,8 @@ given file missing-binding.md and an installed subplot when I try to run subplot docgen missing-binding.md -o foo.html then command fails -and stderr contains ": missing-binding.yaml:" +and stderr contains "could not be found" +and stderr contains "missing-binding.yaml" ~~~ ~~~{#missing-binding.md .file .markdown .numberLines} @@ -2420,7 +2421,8 @@ and file b.yaml and an installed subplot when I try to run subplot codegen --run missing-functions.md -o foo.py then command fails -and stderr contains ": missing-functions.py:" +and stderr contains "could not be found" +and stderr contains "missing-functions.py" ~~~ ~~~{#missing-functions.md .file .markdown .numberLines} |