diff options
author | Conrad Ludgate <conrad.ludgate@truelayer.com> | 2022-04-13 18:08:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-13 18:08:49 +0100 |
commit | 3c5fbc573443a7a4e59a0b898e1586d219f105eb (patch) | |
tree | 20a9498f7b4a81cb44810c84c2067d4eee367d25 /atuin-client/src/database.rs | |
parent | bc45bab273834ee5731bc653ff001278963bf395 (diff) |
provide better error messages (#300)
Diffstat (limited to 'atuin-client/src/database.rs')
-rw-r--r-- | atuin-client/src/database.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/atuin-client/src/database.rs b/atuin-client/src/database.rs index 3ca617175..8b950de99 100644 --- a/atuin-client/src/database.rs +++ b/atuin-client/src/database.rs @@ -9,6 +9,7 @@ use eyre::Result; use itertools::Itertools; use regex::Regex; +use fs_err as fs; use sqlx::sqlite::{ SqliteConnectOptions, SqliteJournalMode, SqlitePool, SqlitePoolOptions, SqliteRow, }; @@ -62,7 +63,7 @@ impl Sqlite { let create = !path.exists(); if create { if let Some(dir) = path.parent() { - std::fs::create_dir_all(dir)?; + fs::create_dir_all(dir)?; } } |