[librsvg/rustify-rsvg-convert] rsvg-convert: fix export_id_option_error test case
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/rustify-rsvg-convert] rsvg-convert: fix export_id_option_error test case
- Date: Sat, 9 Jan 2021 09:58:32 +0000 (UTC)
commit 596d98b7ed2ff322c286ce5321550063706bb360
Author: Paolo Borelli <pborelli gnome org>
Date: Sat Jan 9 09:59:40 2021 +0100
rsvg-convert: fix export_id_option_error test case
src/bin/rsvg-convert/main.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/bin/rsvg-convert/main.rs b/src/bin/rsvg-convert/main.rs
index 8eac3e16..e0719080 100644
--- a/src/bin/rsvg-convert/main.rs
+++ b/src/bin/rsvg-convert/main.rs
@@ -117,7 +117,7 @@ fn main() {
surface
.render(&renderer, &cr, args.export_id())
.unwrap_or_else(|e| match e {
- RenderingError::InvalidId(_) => exit!(
+ RenderingError::IdNotFound => exit!(
"File {} does not have an object with id \"{}\")",
input,
args.export_id().unwrap()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]