[librsvg: 3/10] c_api.rs: Use rsvg_g_critical() to indicate programming errors
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 3/10] c_api.rs: Use rsvg_g_critical() to indicate programming errors
- Date: Tue, 23 Jul 2019 21:25:51 +0000 (UTC)
commit 9d26e03dc64342978ab8273dcf6a474af3843b9f
Author: Federico Mena Quintero <federico gnome org>
Date: Tue Jul 23 14:29:17 2019 -0500
c_api.rs: Use rsvg_g_critical() to indicate programming errors
rsvg_internals/src/c_api.rs | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/rsvg_internals/src/c_api.rs b/rsvg_internals/src/c_api.rs
index 642fd225..f7a25042 100644
--- a/rsvg_internals/src/c_api.rs
+++ b/rsvg_internals/src/c_api.rs
@@ -35,7 +35,7 @@ use crate::error::{set_gerror, LoadingError, RenderingError, RSVG_ERROR_FAILED};
use crate::handle::{Handle, LoadOptions};
use crate::length::RsvgLength;
use crate::structure::IntrinsicDimensions;
-use crate::util::rsvg_g_warning;
+use crate::util::rsvg_g_critical;
mod handle_flags {
// The following is entirely stolen from the auto-generated code
@@ -621,17 +621,17 @@ impl CHandle {
match *state {
LoadState::Start => {
- rsvg_g_warning("Handle has not been loaded");
+ rsvg_g_critical("Handle has not been loaded");
Err(RenderingError::HandleIsNotLoaded)
}
LoadState::Loading { .. } => {
- rsvg_g_warning("Handle is still loading; call rsvg_handle_close() first");
+ rsvg_g_critical("Handle is still loading; call rsvg_handle_close() first");
Err(RenderingError::HandleIsNotLoaded)
}
LoadState::ClosedError => {
- rsvg_g_warning(
+ rsvg_g_critical(
"Handle could not read or parse the SVG; did you check for errors during the \
loading stage?",
);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]