version reporting

This commit is contained in:
David Rose 2009-12-21 18:54:53 +00:00
parent 6c0957c21a
commit b367af397d
1 changed files with 3 additions and 1 deletions

View File

@ -324,7 +324,9 @@ load_plugin(const string &p3d_plugin_filename,
log_directory.c_str(), log_basename.c_str(),
trusted_environment, console_environment)) {
// Oops, failure to initialize.
logfile << "Failed to initialize plugin (wrong API version?)\n";
logfile
<< "Failed to initialize plugin (passed API version "
<< P3D_API_VERSION << ")\n";
unload_plugin();
return false;
}