Skip to content

Commit

Permalink
LoadModel
Browse files Browse the repository at this point in the history
  • Loading branch information
qryxip committed Oct 1, 2023
1 parent a0cde52 commit f3c203d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions crates/voicevox_core/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,7 @@ pub(crate) type LoadModelResult<T> = std::result::Result<T, LoadModelError>;

/// 音声モデル読み込みのエラー。
#[derive(Error, Debug)]
#[error(
"`{path}`の読み込みに失敗しました: {context}{}",
source.as_ref().map(|e| format!(": {e}")).unwrap_or_default())
]
#[error("`{path}`の読み込みに失敗しました: {context}")]
pub(crate) struct LoadModelError {
pub(crate) path: PathBuf,
pub(crate) context: LoadModelErrorKind,
Expand Down

0 comments on commit f3c203d

Please sign in to comment.