1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-30 10:15:36 +01:00

Log plugin path on load error

This commit is contained in:
Arnold Zhou
2024-06-13 20:48:50 +10:00
committed by GitHub
parent 2fbfaf27a4
commit a26f3121ef

View File

@@ -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));