diff options
author | Daniel Silverstone <dsilvers+gitlab@digital-scurf.org> | 2020-06-06 14:42:54 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers+gitlab@digital-scurf.org> | 2020-06-06 14:42:54 +0000 |
commit | bba22e1f86967feebf94ebac327f7489c1029afd (patch) | |
tree | 4bf73ddfb8ed42cb507fbb98e17343d7fff10ce3 /subplot.md | |
parent | 40f3c837310456aaca480a817eb0b6d5e6577b90 (diff) | |
parent | 95bc7f84bbe909c69783f9ae379af2230ddc0739 (diff) | |
download | subplot-bba22e1f86967feebf94ebac327f7489c1029afd.tar.gz |
Merge branch 'enoent' into 'master'
fix: report name of missing bindings or functions file in error msg
Closes #63
See merge request larswirzenius/subplot!47
Diffstat (limited to 'subplot.md')
-rw-r--r-- | subplot.md | 40 |
1 files changed, 40 insertions, 0 deletions
@@ -1458,6 +1458,46 @@ and file mtime.html contains "Geoffrey Butler" and file mtime.html contains "2020-02-26 07:53" ~~~ +### Missing bindings file + +If a bindings file is missing, the error message should name the +missing file. + +~~~scenario +given file missing-binding.md +when I try to run sp-docgen missing-binding.md -o foo.htmlh +then exit code is non-zero +and stderr matches /: missing-binding.yaml:/ +~~~ + +~~~{#missing-binding.md .file .markdown .numberLines} +--- +title: Missing binding +bindings: missing-binding.yaml +... +~~~ + +### Missing functions file + +If a functions file is missing, the error message should name the +missing file. + +~~~scenario +given file missing-functions.md +and file b.yaml +when I try to run sp-codegen --run missing-functions.md -o foo.py +then exit code is non-zero +and stderr matches /: missing-functions.py:/ +~~~ + +~~~{#missing-functions.md .file .markdown .numberLines} +--- +title: Missing functions +bindings: b.yaml +functions: missing-functions.py +... +~~~ + ### Extracting metadata from a document The **sp-meta** program extracts metadata from a document. It is |