From a26f3121ef056c013c7a27c5df06d0713ac89dc8 Mon Sep 17 00:00:00 2001 From: Arnold Zhou Date: Thu, 13 Jun 2024 20:48:50 +1000 Subject: [PATCH] Log plugin path on load error --- src/openrct2/scripting/Plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/scripting/Plugin.cpp b/src/openrct2/scripting/Plugin.cpp index 910337d5c6..7a6d7efa69 100644 --- a/src/openrct2/scripting/Plugin.cpp +++ b/src/openrct2/scripting/Plugin.cpp @@ -68,7 +68,7 @@ void Plugin::Load() { auto val = std::string(duk_safe_to_string(_context, -1)); duk_pop(_context); - throw std::runtime_error("Failed to load plug-in script: " + val); + throw std::runtime_error("Failed to load plug-in script: " + val + " at " + _path); } _metadata = GetMetadata(DukValue::take_from_stack(_context));