Skip to content

Commit

Permalink
Merge pull request #125 from arkedge/improve_errors
Browse files Browse the repository at this point in the history
エラーメッセージを改善する
  • Loading branch information
KOBA789 authored Apr 19, 2024
2 parents 9bdf680 + 1de3719 commit 3739b6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gaia-tmtc/src/tco_tmiv/tmiv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ impl SchemaSet {
pub fn validate(&self, normalized_tmiv: &Tmiv) -> Result<(), String> {
let schema = self
.find_schema_by_name(&normalized_tmiv.name)
.ok_or_else(|| format!("No matched schema for command {}", &normalized_tmiv.name))?;
.ok_or_else(|| format!("No matched schema for telemetry {}", &normalized_tmiv.name))?;
schema.validate(normalized_tmiv)?;
Ok(())
}
Expand Down
2 changes: 1 addition & 1 deletion tmtc-c2a/src/satellite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl TmivBuilder {
let apid = space_packet.primary_header.apid();
let tlm_id = space_packet.secondary_header.telemetry_id();
let Some(telemetry) = self.tlm_registry.lookup(apid, tlm_id) else {
return Err(anyhow!("unknown tlm_id: {tlm_id}"));
return Err(anyhow!("unknown tlm_id: {tlm_id} from apid: {apid}"));
};
let channels = self
.tlm_registry
Expand Down

0 comments on commit 3739b6b

Please sign in to comment.