[librsvg/rustify-rsvg-convert: 19/41] 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: 19/41] rsvg-convert: fix export_id_option_error test case
- Date: Sun, 17 Jan 2021 16:57:04 +0000 (UTC)
commit 35f3c8878bf5acc74c81805786878710421762b2
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]