diff options
author | Ralph Amissah <ralph.amissah@gmail.com> | 2020-05-18 14:23:58 -0400 |
---|---|---|
committer | Ralph Amissah <ralph.amissah@gmail.com> | 2020-05-21 11:52:00 -0400 |
commit | 1e1e6f56d24a0cd6a3b270dc794374df6c3c832f (patch) | |
tree | d21bade8f0a178316ba5f1660687c30a352b6d0c /org/out_src_pod.org | |
parent | meson using subproject directory, not dub directly (diff) |
catching
Diffstat (limited to 'org/out_src_pod.org')
-rw-r--r-- | org/out_src_pod.org | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/org/out_src_pod.org b/org/out_src_pod.org index 071f1d7..3fc6d82 100644 --- a/org/out_src_pod.org +++ b/org/out_src_pod.org @@ -232,7 +232,12 @@ auto fn_pod = pths_pod.pod_filename(doc_matters.src.filename).zpod; 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); |