[librsvg] FeImage: preserve the Href error information
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] FeImage: preserve the Href error information
- Date: Tue, 14 Jan 2020 19:49:55 +0000 (UTC)
commit 7c61f66d8bfd4ec4a553b5f5aa28e7582e0afe60
Author: Federico Mena Quintero <federico gnome org>
Date: Tue Jan 14 13:48:33 2020 -0600
FeImage: preserve the Href error information
rsvg_internals/src/filters/image.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/rsvg_internals/src/filters/image.rs b/rsvg_internals/src/filters/image.rs
index c8cd471c..ca21b6b6 100644
--- a/rsvg_internals/src/filters/image.rs
+++ b/rsvg_internals/src/filters/image.rs
@@ -118,7 +118,7 @@ impl NodeTrait for FeImage {
// "path" is used by some older Adobe Illustrator versions
expanded_name!(xlink "href") | expanded_name!("", "path") => {
let href = Href::parse(value)
- .map_err(|_| ValueErrorKind::parse_error("could not parse href"))
+ .map_err(|e| ValueErrorKind::from(e))
.attribute(attr)?;
self.href = Some(href);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]