Display a more user-friendly error message when the ruby library is not available

develop
lethosor 2015-02-21 21:50:18 -05:00
parent 88ff51c755
commit d7897caec7
1 changed files with 3 additions and 0 deletions

@ -175,7 +175,10 @@ DFhackCExport command_result plugin_eval_ruby( color_ostream &out, const char *c
// if dlopen failed
if (!r_thread)
{
out.printerr("Failed to load ruby library.\n");
return CR_FAILURE;
}
if (!strncmp(command, "nolock ", 7)) {
// debug only!