report correct error

This commit is contained in:
Igor Zinkovsky 2012-05-22 15:58:01 -07:00
parent 0ef7844b87
commit 253d718572

View File

@ -855,7 +855,7 @@ void fs__create_junction(uv_fs_t* req, const wchar_t* path, const wchar_t* new_p
if (!is_absolute) {
/* Not supporting relative paths */
SET_REQ_UV_ERROR(req, EINVAL, ERROR_NOT_SUPPORTED);
SET_REQ_UV_ERROR(req, UV_EINVAL, ERROR_NOT_SUPPORTED);
return;
}