diff --git a/tests/test-vad-full.cpp b/tests/test-vad-full.cpp index cfb3f2daa..765ef3654 100644 --- a/tests/test-vad-full.cpp +++ b/tests/test-vad-full.cpp @@ -27,6 +27,11 @@ int main() { whisper_model_path.c_str(), cparams); + if (!wctx) { + fprintf(stderr, "failed to load model '%s'\n", whisper_model_path.c_str()); + return 1; + } + struct whisper_full_params wparams = whisper_full_default_params(WHISPER_SAMPLING_BEAM_SEARCH); wparams.vad = true; wparams.vad_model_path = vad_model_path.c_str();