Improve tz load error message very slightly
This commit is contained in:
parent
1189e3eb7b
commit
f555414716
1 changed files with 3 additions and 1 deletions
|
|
@ -26,6 +26,7 @@ mod version;
|
||||||
|
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
|
|
||||||
|
use anyhow::Context;
|
||||||
use clap::Parser;
|
use clap::Parser;
|
||||||
use cove_config::doc::Document;
|
use cove_config::doc::Document;
|
||||||
use cove_config::Config;
|
use cove_config::Config;
|
||||||
|
|
@ -130,7 +131,8 @@ fn update_config_with_args(config: &mut Config, args: &Args) {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn open_vault(config: &Config, dirs: &ProjectDirs) -> anyhow::Result<Vault> {
|
fn open_vault(config: &Config, dirs: &ProjectDirs) -> anyhow::Result<Vault> {
|
||||||
let time_zone = util::load_time_zone(config.time_zone_ref())?;
|
let time_zone =
|
||||||
|
util::load_time_zone(config.time_zone_ref()).context("failed to load time zone")?;
|
||||||
let time_zone = Box::leak(Box::new(time_zone));
|
let time_zone = Box::leak(Box::new(time_zone));
|
||||||
|
|
||||||
let vault = if config.ephemeral {
|
let vault = if config.ephemeral {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue