aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/io_out
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2020-05-18 14:23:58 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2020-05-21 11:52:00 -0400
commit1e1e6f56d24a0cd6a3b270dc794374df6c3c832f (patch)
treed21bade8f0a178316ba5f1660687c30a352b6d0c /src/doc_reform/io_out
parentmeson using subproject directory, not dub directly (diff)
catching
Diffstat (limited to 'src/doc_reform/io_out')
-rw-r--r--src/doc_reform/io_out/source_pod.d7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/doc_reform/io_out/source_pod.d b/src/doc_reform/io_out/source_pod.d
index 5a96ed6..5a0fd47 100644
--- a/src/doc_reform/io_out/source_pod.d
+++ b/src/doc_reform/io_out/source_pod.d
@@ -167,7 +167,12 @@ template spinePod() {
string _pm = "doc:\n filename: " ~ doc_matters.src.filename ~ "\n language: " ~ doc_matters.pod.manifest_list_of_languages.to!string ~ "\n";
if (doc_matters.opt.action.debug_do
&& doc_matters.opt.action.verbose) {
- _pmy = Loader.fromString(_pm).load();
+ try {
+ _pmy = Loader.fromString(_pm).load();
+ } catch (ErrnoException ex) {
+ } catch (Throwable) {
+ writeln("ERROR failed to read config file content, not parsed as yaml");
+ }
writeln("pod filename: ", _pmy["doc"]["filename"].get!string);
writeln("pod languages: ", doc_matters.pod.manifest_list_of_languages.to!string);
writeln("pod languages: ", doc_matters.src.language);