Skip to content

Commit

Permalink
fix block storage error naming
Browse files Browse the repository at this point in the history
  • Loading branch information
eugene-babichenko committed Sep 16, 2020
1 parent 2f468fa commit 8967dfd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions jormungandr/src/start_up/error.rs
Expand Up @@ -10,8 +10,8 @@ use thiserror::Error;

#[derive(Debug, Error)]
pub enum ErrorKind {
#[error("SQLite file")]
SQLite,
#[error("block storage")]
BlockStorage,
#[error("Block0")]
Block0,
}
Expand Down
2 changes: 1 addition & 1 deletion jormungandr/src/start_up/mod.rs
Expand Up @@ -15,7 +15,7 @@ pub fn prepare_storage(setting: &Settings, logger: &Logger) -> Result<Storage, E
if let Some(dir) = &setting.storage {
std::fs::create_dir_all(dir).map_err(|err| Error::IO {
source: err,
reason: ErrorKind::SQLite,
reason: ErrorKind::BlockStorage,
})?;

info!(logger, "storing blockchain in '{:?}'", dir);
Expand Down

0 comments on commit 8967dfd

Please sign in to comment.