Use short plugin name in error messages when possible

develop
lethosor 2015-02-09 22:06:33 -05:00
parent 8e8f88f3db
commit e3b67b2985
1 changed files with 2 additions and 2 deletions

@ -241,7 +241,7 @@ bool Plugin::load(color_ostream &con)
std::vector<std::string>** plugin_globals_ptr = (std::vector<std::string>**) LookupPlugin(plug, "plugin_globals");
if(!plugin_init || !plugin_globals_ptr)
{
con.printerr("Plugin %s has no init function or globals vector.\n", filename.c_str());
con.printerr("Plugin %s has no init function or globals vector.\n", *plug_name);
ClosePlugin(plug);
state = PS_BROKEN;
return false;
@ -286,7 +286,7 @@ bool Plugin::load(color_ostream &con)
}
else
{
con.printerr("Plugin %s has failed to initialize properly.\n", filename.c_str());
con.printerr("Plugin %s has failed to initialize properly.\n", name.c_str());
plugin_is_enabled = 0;
plugin_onupdate = 0;
reset_lua();