[librsvg: 21/51] turbulence.rs: Don't create a NodeError directly
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 21/51] turbulence.rs: Don't create a NodeError directly
- Date: Thu, 19 Dec 2019 01:49:47 +0000 (UTC)
commit 674ded5e98f97e20b4b9b4c57a295e27b24e4d26
Author: Federico Mena Quintero <federico gnome org>
Date: Tue Dec 17 11:00:37 2019 -0600
turbulence.rs: Don't create a NodeError directly
rsvg_internals/src/filters/turbulence.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/rsvg_internals/src/filters/turbulence.rs b/rsvg_internals/src/filters/turbulence.rs
index 6bf37775..c7159cd4 100644
--- a/rsvg_internals/src/filters/turbulence.rs
+++ b/rsvg_internals/src/filters/turbulence.rs
@@ -424,7 +424,7 @@ impl StitchTiles {
match s {
"stitch" => Ok(StitchTiles::Stitch),
"noStitch" => Ok(StitchTiles::NoStitch),
- _ => Err(NodeError::parse_error(attr, "invalid value")),
+ _ => Err(ValueErrorKind::parse_error("invalid value")).attribute(attr),
}
}
}
@@ -434,7 +434,7 @@ impl NoiseType {
match s {
"fractalNoise" => Ok(NoiseType::FractalNoise),
"turbulence" => Ok(NoiseType::Turbulence),
- _ => 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]