Skip to content

Commit

Permalink
module: improve process.dlopen() error messages
Browse files Browse the repository at this point in the history
On Windows, that is. On Unices, we don't have a good way to translate dlopen()
and dlsym() errors (yet).
  • Loading branch information
bnoordhuis authored and alexkwolfe committed Dec 23, 2011
1 parent 9c9b8b1 commit 305d54d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1679,7 +1679,7 @@ Handle<Value> 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)));
}
Expand Down

0 comments on commit 305d54d

Please sign in to comment.