Permalink
Browse files

changed error message for dumping a hash in compat mode

  • Loading branch information...
1 parent 52899a4 commit efe240d97ea7a4c4a5ae0ac6be543e12873818ad Peter Ohler committed May 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 ext/oj/dump.c
View
2 ext/oj/dump.c
@@ -736,7 +736,7 @@ hash_cb_compat(VALUE key, VALUE value, Out out) {
dump_sym_comp(key, out);
break;
default:
- rb_raise(rb_eTypeError, "In :strict mode all Hash keys must be Strings.");
+ rb_raise(rb_eTypeError, "In :compat mode all Hash keys must be Strings or Symbols.");
break;
}
if (0 == out->opts->dump_opts) {

0 comments on commit efe240d

Please sign in to comment.