From b2ee8ac036e13efb06e7097a8744e280e23c300d Mon Sep 17 00:00:00 2001 From: arch1t3cht Date: Tue, 15 Aug 2023 16:04:53 +0200 Subject: [PATCH] vapoursynth: Make loading error messages a bit more helpful --- src/vapoursynth_wrap.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vapoursynth_wrap.cpp b/src/vapoursynth_wrap.cpp index 8bbbccbbf..d0f7f0173 100644 --- a/src/vapoursynth_wrap.cpp +++ b/src/vapoursynth_wrap.cpp @@ -71,7 +71,7 @@ VapourSynthWrapper::VapourSynthWrapper() { #endif if (!hLib) - throw VapourSynthError("Could not load " VSSCRIPT_SO); + throw VapourSynthError("Could not load " VSSCRIPT_SO ". Make sure VapourSynth is installed correctly."); #ifdef _WIN32 FUNC* getVSScriptAPI = (FUNC*)GetProcAddress(hLib, "getVSScriptAPI"); @@ -89,7 +89,7 @@ VapourSynthWrapper::VapourSynthWrapper() { setlocale(LC_ALL, oldlocale.c_str()); if (!scriptapi) - throw VapourSynthError("Failed to get VapourSynth ScriptAPI"); + throw VapourSynthError("Failed to get VapourSynth ScriptAPI. Make sure VapourSynth is installed correctly."); api = scriptapi->getVSAPI(VAPOURSYNTH_API_VERSION);