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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user