Skip to content

Commit

Permalink
change ERR to panic in validation error
Browse files Browse the repository at this point in the history
  • Loading branch information
Yosshi999 committed Oct 29, 2024
1 parent 6620df5 commit 8cb6aac
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions crates/voicevox_core/src/synthesizer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -516,10 +516,7 @@ pub(crate) mod blocking {
if MARGIN > audio.padding_frame_length + clipped_start
|| MARGIN > audio.padding_frame_length + (audio.frame_length - clipped_end)
{
return Err(ErrorRepr::RunModel(anyhow::anyhow!(
"Validation error: Too short padding for input"
))
.into());
unimplemented!("Validation error: Too short padding for input, please report this issue on GitHub.");
}
let left_margin = MARGIN;
let right_margin = MARGIN;
Expand Down

0 comments on commit 8cb6aac

Please sign in to comment.