ext/numo/narray/array.c in numo-narray-0.9.1.0 vs ext/numo/narray/array.c in numo-narray-0.9.1.1

- old
+ new

@@ -433,10 +433,11 @@ } if (pnary) { *pnary = nary_new(dtype, ndim, na->shape); } } else { - rb_bug("invalid type for md-array: %s", rb_class2name(CLASS_OF(obj))); + rb_raise(rb_eTypeError,"invalid type for NArray: %s", + rb_class2name(CLASS_OF(obj))); } } static VALUE