refactor(errors): adopt reportable error terminology
This commit is contained in:
1 parent
21e9497915
commit
9fec2fa095
92 files changed
+270
-269
No files matched your search
@@ -539,7 +539,7 @@ mod tests {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn packet_and_history_decode_a_typed_kaptan_error() {
|
||||
fn packet_and_history_decode_a_reportable_kaptan_error() {
|
||||
let raised_at_text = "platforms/stm32f7/src/f722/board.rs:572";
|
||||
let mut raised_at = [0; 96];
|
||||
raised_at[..raised_at_text.len()].copy_from_slice(raised_at_text.as_bytes());
|
||||
@@ -684,7 +684,7 @@ mod tests {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn malformed_typed_error_location_is_not_added_to_history() {
|
||||
fn malformed_reportable_error_location_is_not_added_to_history() {
|
||||
let mut raised_at = [0_u8; 96];
|
||||
raised_at[0] = 0xff;
|
||||
let mut frame = MavlinkFrame::new();
|
||||
|
||||
@@ -9,7 +9,7 @@ version.workspace = true
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
kaptan-err-propagate = { path = "../../libs/kaptan-err-propagate" }
|
||||
kaptan-err-reportable = { path = "../../libs/kaptan-err-reportable" }
|
||||
kaptan-control = { path = "../../libs/kaptan-control" }
|
||||
kaptan-config = { path = "../../libs/kaptan-config" }
|
||||
kaptan-config-mavlink = { path = "../../libs/kaptan-config-mavlink" }
|
||||
|
||||
@@ -7,7 +7,7 @@ use std::{
|
||||
};
|
||||
|
||||
use kaptan_config::ConfigStore;
|
||||
use kaptan_err_propagate::KaptanError;
|
||||
use kaptan_err_reportable::KaptanError;
|
||||
use kaptan_flight_config::{
|
||||
CandidateProfile, CborEncodeError, CborError, MAXIMUM_CANDIDATE_BYTES, VehicleProfile,
|
||||
decode_candidate, encode_candidate,
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//! dialect. It is confined to one host network namespace and is versioned so
|
||||
//! malformed simulator traffic never becomes estimator or motor authority.
|
||||
|
||||
use kaptan_err_propagate::KaptanError;
|
||||
use kaptan_err_reportable::KaptanError;
|
||||
use std::net::SocketAddr;
|
||||
|
||||
pub const SENSOR_PORT: u16 = 14_660;
|
||||
|
||||
Reference in new issue
Block a user