Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

better exception for ser_get_string

  • Loading branch information...
commit ece66402d03bcdabde915519e366678869dfd89b 1 parent ee65e94
@qqshfox authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  ext/rocketamf_ext/serializer.c
View
2  ext/rocketamf_ext/serializer.c
@@ -109,7 +109,7 @@ void ser_get_string(VALUE obj, VALUE encode, char** str, long* len) {
} else if(obj == Qnil) {
*len = 0;
} else {
- rb_raise(rb_eArgError, "Invalid type in ser_get_string: %d", type);
+ rb_raise(rb_eTypeError, "Invalid type in ser_get_string: %s", rb_obj_classname(type));
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.