From c6155454163a439bf9c74a876f9ac201673b20fc Mon Sep 17 00:00:00 2001 From: Mickael van der Beek Date: Wed, 17 Sep 2014 14:40:01 -0700 Subject: [PATCH] crypto: clarify RandomBytes() error msg Reviewed-by: Trevor Norris --- src/node_crypto.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_crypto.cc b/src/node_crypto.cc index 85f18bc199..7f546ed671 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -4723,7 +4723,7 @@ void RandomBytes(const FunctionCallbackInfo& args) { // maybe allow a buffer to write to? cuts down on object creation // when generating random data in a loop if (!args[0]->IsUint32()) { - return env->ThrowTypeError("Argument #1 must be number > 0"); + return env->ThrowTypeError("size must be a number >= 0"); } const uint32_t size = args[0]->Uint32Value();