v0.2.6-pre.003-fix.001
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// file: crates/ksp-config-lib/src/wallet.rs
|
||||
// version: 1
|
||||
// version: 2
|
||||
|
||||
/// Effective standard Wallet configuration resolved from Config.
|
||||
#[derive(Clone, Eq, PartialEq)]
|
||||
@@ -146,7 +146,7 @@ pub(crate) fn validate_wallet_document_contract(document: &crate::ConfigJsonDocu
|
||||
let subdirectory = profile.get("wallets_subdirectory").and_then(serde_json::Value::as_str);
|
||||
if let std::option::Option::Some(value) = subdirectory {
|
||||
let validation = validate_relative_subdirectory(value);
|
||||
if let std::result::Result::Err(_) = validation {
|
||||
if validation.is_err() {
|
||||
return std::result::Result::Err(
|
||||
wallet_document_error(document, "wallets_subdirectory must contain only relative normal path components")
|
||||
.with_context("profile_index", profile_index.to_string()),
|
||||
|
||||
Reference in New Issue
Block a user