Permalink
Browse files

Fix SEGV (ticket #2) in rb_raise

  • Loading branch information...
1 parent 21bca68 commit af1223ce9c67384af52b941da46fce3df1182e0c @lwu lwu committed Mar 21, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 ext/sand_table/sand_table.c
@@ -272,7 +272,7 @@ sandbox_initialize(argc, argv, self)
SAND_INIT(env);
SAND_INIT(real);
} else {
- rb_raise(rb_eArgError, "no %s module for the sandbox", mod);
+ rb_raise(rb_eArgError, "no '%s' module available for the sandbox", RSTRING(rb_inspect(mod))->ptr);
}
}
}

0 comments on commit af1223c

Please sign in to comment.