[librsvg: 16/51] morphology.rs: Don't create a NodeError directly
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 16/51] morphology.rs: Don't create a NodeError directly
- Date: Thu, 19 Dec 2019 01:49:21 +0000 (UTC)
commit 8fc05fda1c2ec33cc4653b5f650a89f382cebddb
Author: Federico Mena Quintero <federico gnome org>
Date: Tue Dec 17 10:56:32 2019 -0600
morphology.rs: Don't create a NodeError directly
rsvg_internals/src/filters/morphology.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/rsvg_internals/src/filters/morphology.rs b/rsvg_internals/src/filters/morphology.rs
index 7b4d4447..e6dcb844 100644
--- a/rsvg_internals/src/filters/morphology.rs
+++ b/rsvg_internals/src/filters/morphology.rs
@@ -164,7 +164,7 @@ impl Operator {
match s {
"erode" => Ok(Operator::Erode),
"dilate" => Ok(Operator::Dilate),
- _ => Err(NodeError::parse_error(attr, "invalid value")),
+ _ => Err(ValueErrorKind::parse_error("invalid value")).attribute(attr),
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]