add logging if an error occurrs in method
All checks were successful
Build and Test / splatoon (push) Successful in 4m45s
Build and Test / wii-u-chat (push) Successful in 4m47s
Build and Test / friends (push) Successful in 4m57s
Build and Test / super-mario-maker (push) Successful in 9m43s

This commit is contained in:
Maple Nebel 2026-04-28 11:31:43 +02:00
commit cbd175229e

View file

@ -6,7 +6,7 @@ use crate::rmc::response::ErrorCode::Core_Exception;
use crate::rmc::structures::qresult::ERROR_MASK;
use crate::util::SendingBufferConnection;
use bytemuck::bytes_of;
use log::error;
use log::{error, warn};
use std::io;
use std::io::{Read, Seek, Write};
use std::mem::transmute;
@ -157,10 +157,13 @@ pub async fn send_result(
method_id,
data: v,
},
Err(e) => RMCResponseResult::Error {
Err(e) => {
warn!("error occurred during call: {:?}", e);
RMCResponseResult::Error {
call_id,
error_code: e.into(),
},
}
}
};
let response = RMCResponse {