aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/spine.org
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 /org/spine.org
parentmeson using subproject directory, not dub directly (diff)
catching
Diffstat (limited to 'org/spine.org')
-rw-r--r--org/spine.org10
1 files changed, 9 insertions, 1 deletions
diff --git a/org/spine.org b/org/spine.org
index ed575f0..82cdeb7 100644
--- a/org/spine.org
+++ b/org/spine.org
@@ -943,7 +943,15 @@ foreach(arg; args[1..$]) {
if (exists(sisudoc_txt_)) {
import dyaml;
try {
- Node pod_manifest_yaml = Loader.fromFile(sisudoc_txt_).load();
+ Node pod_manifest_yaml;
+ try {
+ pod_manifest_yaml = Loader.fromFile(sisudoc_txt_).load();
+ } catch (ErrnoException ex) {
+ } catch (FileException ex) {
+ writeln("ERROR failed to read config file");
+ } catch (Throwable) {
+ writeln("ERROR failed to read config file content, not parsed as yaml");
+ }
if ("doc" in pod_manifest_yaml) {
if (pod_manifest_yaml["doc"].type.mapping
&& pod_manifest_yaml["doc"].tag.match(rgx.yaml_tag_is_map)