v0.1.4-pre.008-fix.001

This commit is contained in:
2026-08-16 13:06:36 +02:00
parent 1825676ff9
commit 73d05862af
6 changed files with 138 additions and 11 deletions

View File

@@ -1,5 +1,5 @@
// file: crates/ksp-app-config-desk/src/splash.rs
// version: 1
// version: 2
//! Common splash settings and frontend event contracts for Config Desk.
@@ -105,7 +105,7 @@ fn parse_u64_setting(variable_name: &str, value: &str, maximum: u64) -> ksp_core
return std::result::Result::Err(
ksp_core_lib::Error::new(crate::ERROR_CODE_SPLASH_SETTING_INVALID, "KSP desk splash duration exceeds the allowed bound")
.with_context("variable_name", variable_name)
.with_context("maximum_ms", maximum),
.with_context("maximum_ms", maximum.to_string()),
);
}
return std::result::Result::Ok(parsed);
@@ -127,7 +127,7 @@ fn parse_u32_setting(variable_name: &str, value: &str, maximum: u32) -> ksp_core
return std::result::Result::Err(
ksp_core_lib::Error::new(crate::ERROR_CODE_SPLASH_SETTING_INVALID, "KSP desk splash duration exceeds the allowed bound")
.with_context("variable_name", variable_name)
.with_context("maximum_ms", maximum),
.with_context("maximum_ms", maximum.to_string()),
);
}
return std::result::Result::Ok(parsed);