mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-17 08:01:36 +00:00
accessibility/wl-gammarelay-rs: apply a crashfix
thread 'main' panicked at rustbus-service-7401913977ccf665748b1f4dee033921e1c86afd/src/lib.rs:117:39: not yet implemented
This commit is contained in:
parent
4c14ecfaa1
commit
96596ed77a
@ -1,6 +1,7 @@
|
||||
PORTNAME= wl-gammarelay-rs
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 0.4.0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= accessibility wayland
|
||||
|
||||
MAINTAINER= jbeich@FreeBSD.org
|
||||
|
21
accessibility/wl-gammarelay-rs/files/patch-rustbus-service
Normal file
21
accessibility/wl-gammarelay-rs/files/patch-rustbus-service
Normal file
@ -0,0 +1,21 @@
|
||||
https://github.com/MaxVerevkin/wl-gammarelay-rs/issues/22
|
||||
https://github.com/MaxVerevkin/rustbus-service/commit/681b783ff093
|
||||
|
||||
--- ../rustbus-service-7401913977ccf665748b1f4dee033921e1c86afd/src/lib.rs.orig 2024-03-17 08:14:31 UTC
|
||||
+++ ../rustbus-service-7401913977ccf665748b1f4dee033921e1c86afd/src/lib.rs
|
||||
@@ -114,7 +114,14 @@ impl<D: 'static> Service<D> {
|
||||
MessageType::Signal => {
|
||||
eprintln!("todo: handle signal: {:?}", msg.dynheader.member);
|
||||
}
|
||||
- MessageType::Error => todo!(),
|
||||
+ MessageType::Error => {
|
||||
+ let error_name = msg.dynheader.error_name.expect("error without error_name");
|
||||
+ let error_message = msg.body.parser().get::<&str>().ok();
|
||||
+ eprintln!(
|
||||
+ "dbus error: {error_name}: {}",
|
||||
+ error_message.unwrap_or("<no message>")
|
||||
+ );
|
||||
+ }
|
||||
MessageType::Call => {
|
||||
if let Some(cb) = get_call_handler(&self.root, &msg) {
|
||||
cb(MethodContext {
|
Loading…
Reference in New Issue
Block a user