From 4b455bafd0c909c2aa7a51a50615ef6b5d047781 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Sun, 18 Dec 2011 22:27:21 +0100 Subject: [PATCH] module: improve process.dlopen() error messages On Windows, that is. On Unices, we don't have a good way to translate dlopen() and dlsym() errors (yet). --- src/node.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node.cc b/src/node.cc index 9830b1fb695..ba285aa0e55 100644 --- a/src/node.cc +++ b/src/node.cc @@ -1679,7 +1679,7 @@ Handle DLOpen(const v8::Arguments& args) { if (err.code == UV_ENOENT) message = "Module entry point not found."; else - message = "Out of memory."; + message = uv_strerror(err); return ThrowException(Exception::Error(String::New(message))); }