[Kde-bindings] KDE/kdebindings/ruby/korundum/src
Richard Dale
richard.j.dale at gmail.com
Wed Jul 7 21:05:15 UTC 2010
SVN commit 1147309 by rdale:
* When loading a Ruby plugin and it has the wrong number of args, don't output an
error message about it, just try with 2 args instead of 3 and see if that works.
CCMAIL: kde-bindings at kde.org
M +5 -0 krubypluginfactory.cpp
--- trunk/KDE/kdebindings/ruby/korundum/src/krubypluginfactory.cpp #1147308:1147309
@@ -218,7 +218,12 @@
VALUE plugin_value = rb_protect(create_plugin_instance3, av, &state);
if (state != 0 || plugin_value == Qnil) {
+ VALUE lasterr = rb_gv_get("$!");
+ VALUE klass = rb_class_path(CLASS_OF(lasterr));
+ if (qstrcmp(RSTRING(klass)->ptr, "ArgumentError") != 0) {
show_exception_message();
+ }
+
rb_ary_push(av, po);
plugin_value = rb_protect(create_plugin_instance2, av, &state);
if(state != 0 || plugin_value == Qnil) {
More information about the Kde-bindings
mailing list