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).
This commit is contained in:
parent
f322bbe729
commit
4b455bafd0
@ -1679,7 +1679,7 @@ Handle<Value> DLOpen(const v8::Arguments& args) {
|
|||||||
if (err.code == UV_ENOENT)
|
if (err.code == UV_ENOENT)
|
||||||
message = "Module entry point not found.";
|
message = "Module entry point not found.";
|
||||||
else
|
else
|
||||||
message = "Out of memory.";
|
message = uv_strerror(err);
|
||||||
|
|
||||||
return ThrowException(Exception::Error(String::New(message)));
|
return ThrowException(Exception::Error(String::New(message)));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user