From d7897caec70e0a82b4954c6b0fc04ac8e2010868 Mon Sep 17 00:00:00 2001 From: lethosor Date: Sat, 21 Feb 2015 21:50:18 -0500 Subject: [PATCH] Display a more user-friendly error message when the ruby library is not available --- plugins/ruby/ruby.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/ruby/ruby.cpp b/plugins/ruby/ruby.cpp index 4aa78396a..ced8e4822 100644 --- a/plugins/ruby/ruby.cpp +++ b/plugins/ruby/ruby.cpp @@ -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!