From d5f0443fc11d657b1bbbc2da6762002edee9a618 Mon Sep 17 00:00:00 2001 From: Mike Dirolf Date: Thu, 17 Dec 2009 09:47:27 -0500 Subject: [PATCH] better error message --- ext/cbson/cbson.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/cbson/cbson.c b/ext/cbson/cbson.c index 15d002f..1d51a55 100644 --- a/ext/cbson/cbson.c +++ b/ext/cbson/cbson.c @@ -51,7 +51,7 @@ #define SAFE_WRITE_AT_POS(buffer, position, data, size) \ if (buffer_write_at_position((buffer), (position), (data), (size)) != 0) \ - rb_raise(rb_eNoMemError, "failed to allocate memory in buffer.c") + rb_raise(rb_eRuntimeError, "invalid write at position in buffer.c") #define MAX_HOSTNAME_LENGTH 256