diff --git a/src/module_wrap.cc b/src/module_wrap.cc index 622deed45ff668..b11a4fe898ab81 100644 --- a/src/module_wrap.cc +++ b/src/module_wrap.cc @@ -494,7 +494,7 @@ inline Maybe OpenDescriptor(const std::string& path) { inline void CloseDescriptor(uv_file fd) { uv_fs_t fs_req; - uv_fs_close(nullptr, &fs_req, fd, nullptr); + CHECK_EQ(0, uv_fs_close(nullptr, &fs_req, fd, nullptr)); uv_fs_req_cleanup(&fs_req); }