Skip to content

Commit

Permalink
Log plugin path on load error
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmagic2020 committed Jun 13, 2024
1 parent 2fbfaf2 commit a26f312
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/openrct2/scripting/Plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit a26f312

Please sign in to comment.