[librsvg: 9/18] Make fmt::Display for NodeError less verbose



commit 7c1004b76e38528cdc1e6c5fa0c537db51147248
Author: Federico Mena Quintero <federico gnome org>
Date:   Fri Dec 6 15:23:30 2019 -0600

    Make fmt::Display for NodeError less verbose

 rsvg_internals/src/error.rs | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/rsvg_internals/src/error.rs b/rsvg_internals/src/error.rs
index c414c1e3..cc12d511 100644
--- a/rsvg_internals/src/error.rs
+++ b/rsvg_internals/src/error.rs
@@ -67,15 +67,13 @@ impl fmt::Display for NodeError {
 
             ValueErrorKind::Parse(ref n) => write!(
                 f,
-                "error parsing value for attribute \"{}\": {}",
-                self.attr.local.to_string(),
+                "parse error: {}",
                 n.display
             ),
 
             ValueErrorKind::Value(ref s) => write!(
                 f,
-                "invalid value for attribute \"{}\": {}",
-                self.attr.local.to_string(),
+                "invalid value: {}",
                 s
             ),
         }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]