[librsvg: 19/51] blend.rs: Don't create a NodeError directly
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 19/51] blend.rs: Don't create a NodeError directly
- Date: Thu, 19 Dec 2019 01:49:36 +0000 (UTC)
commit b52d55b6af7f8dba20b9650950e756286e0fc4bb
Author: Federico Mena Quintero <federico gnome org>
Date: Tue Dec 17 10:59:20 2019 -0600
blend.rs: Don't create a NodeError directly
rsvg_internals/src/filters/blend.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/rsvg_internals/src/filters/blend.rs b/rsvg_internals/src/filters/blend.rs
index b7eefb8a..6cae800c 100755
--- a/rsvg_internals/src/filters/blend.rs
+++ b/rsvg_internals/src/filters/blend.rs
@@ -2,7 +2,7 @@ use cairo;
use markup5ever::{expanded_name, local_name, namespace_url, ns, QualName};
use crate::drawing_ctx::DrawingCtx;
-use crate::error::NodeError;
+use crate::error::*;
use crate::node::{NodeResult, NodeTrait, RsvgNode};
use crate::property_bag::PropertyBag;
use crate::surface_utils::shared_surface::SharedImageSurface;
@@ -150,7 +150,7 @@ impl Mode {
"saturation" => Ok(Mode::HslSaturation),
"color" => Ok(Mode::HslColor),
"luminosity" => Ok(Mode::HslLuminosity),
- _ => 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]