Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoseph Frazer <joseph.frazer@ryansg.com>2020-03-06 13:39:44 -0500
committerJoseph Frazer <joseph.frazer@ryansg.com>2020-03-06 13:41:32 -0500
commit246a40a047b279c1e8c9ef604f563fe6915b0969 (patch)
tree595e38d457dd98b2baec8f402f24fb48ccb5986e /tamer/src/ld/poc.rs
parent2228a6158a0982647d0015e5cddaf9641c34337a (diff)
downloadtame-246a40a047b279c1e8c9ef604f563fe6915b0969.tar.gz
tame-246a40a047b279c1e8c9ef604f563fe6915b0969.tar.bz2
tame-246a40a047b279c1e8c9ef604f563fe6915b0969.zip
[DEV-7134] Return error for XmloEvent::SymDecl
We want more than warnings when a XmloEvent::SymDecl symbol has an unknown "kind".
Diffstat (limited to 'tamer/src/ld/poc.rs')
-rw-r--r--tamer/src/ld/poc.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/tamer/src/ld/poc.rs b/tamer/src/ld/poc.rs
index 9f20492..140e4ce 100644
--- a/tamer/src/ld/poc.rs
+++ b/tamer/src/ld/poc.rs
@@ -167,7 +167,6 @@ fn load_xmlo<'a, 'i, I: Interner<'i>>(
src.pkg_name = None;
}
- // TODO: should probably track these down in the XSLT linker...
match kind {
Ok(kindval) => {
// TODO: inefficient
@@ -182,7 +181,7 @@ fn load_xmlo<'a, 'i, I: Interner<'i>>(
roots.push(node);
}
}
- Err(e) => println!("{:?}; skipping...", e),
+ Err(e) => return Err(e.into()),
};
}
}