Open gsikorski opened 8 years ago
NanErrnoException is deprecated in favour of ErrnoException
NanErrnoException
ErrnoException
CXX(target) Release/obj.target/fs-ext/fs-ext.o ../fs-ext.cc: In function ‘void EIO_After(uv_work_t*)’: ../fs-ext.cc:108:20: warning: ‘v8::Local<v8::Value> Nan::NanErrnoException(int, const char*, const char*, const char*)’ is deprecated (declared at ../node_modules/nan/nan.h:858) [-Wdeprecated-declarations] argv[0] = Nan::NanErrnoException(store_data->error); ^ ../fs-ext.cc:108:55: warning: ‘v8::Local<v8::Value> Nan::NanErrnoException(int, const char*, const char*, const char*)’ is deprecated (declared at ../node_modules/nan/nan.h:858) [-Wdeprecated-declarations] argv[0] = Nan::NanErrnoException(store_data->error); ^ ../fs-ext.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE Flock(Nan::NAN_METHOD_ARGS_TYPE)’: ../fs-ext.cc:297:45: warning: ‘v8::Local<v8::Value> Nan::NanErrnoException(int, const char*, const char*, const char*)’ is deprecated (declared at ../node_modules/nan/nan.h:858) [-Wdeprecated-declarations] if (i != 0) return Nan::ThrowError(Nan::NanErrnoException(errno)); ^ ../fs-ext.cc:297:68: warning: ‘v8::Local<v8::Value> Nan::NanErrnoException(int, const char*, const char*, const char*)’ is deprecated (declared at ../node_modules/nan/nan.h:858) [-Wdeprecated-declarations] if (i != 0) return Nan::ThrowError(Nan::NanErrnoException(errno)); ^ ../fs-ext.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE Seek(Nan::NAN_METHOD_ARGS_TYPE)’: ../fs-ext.cc:339:56: warning: ‘v8::Local<v8::Value> Nan::NanErrnoException(int, const char*, const char*, const char*)’ is deprecated (declared at ../node_modules/nan/nan.h:858) [-Wdeprecated-declarations] if (offs_result == -1) return Nan::ThrowError(Nan::NanErrnoException(errno)); ^ ../fs-ext.cc:339:79: warning: ‘v8::Local<v8::Value> Nan::NanErrnoException(int, const char*, const char*, const char*)’ is deprecated (declared at ../node_modules/nan/nan.h:858) [-Wdeprecated-declarations] if (offs_result == -1) return Nan::ThrowError(Nan::NanErrnoException(errno)); ^ ../fs-ext.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE Fcntl(Nan::NAN_METHOD_ARGS_TYPE)’: ../fs-ext.cc:375:51: warning: ‘v8::Local<v8::Value> Nan::NanErrnoException(int, const char*, const char*, const char*)’ is deprecated (declared at ../node_modules/nan/nan.h:858) [-Wdeprecated-declarations] if (result == -1) return Nan::ThrowError(Nan::NanErrnoException(errno)); ^ ../fs-ext.cc:375:74: warning: ‘v8::Local<v8::Value> Nan::NanErrnoException(int, const char*, const char*, const char*)’ is deprecated (declared at ../node_modules/nan/nan.h:858) [-Wdeprecated-declarations] if (result == -1) return Nan::ThrowError(Nan::NanErrnoException(errno)); ^ ../fs-ext.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE UTime(Nan::NAN_METHOD_ARGS_TYPE)’: ../fs-ext.cc:433:47: warning: ‘v8::Local<v8::Value> Nan::NanErrnoException(int, const char*, const char*, const char*)’ is deprecated (declared at ../node_modules/nan/nan.h:858) [-Wdeprecated-declarations] if (ret != 0) return Nan::ThrowError(Nan::NanErrnoException(errno, "utime", "", *path)); ^ ../fs-ext.cc:433:90: warning: ‘v8::Local<v8::Value> Nan::NanErrnoException(int, const char*, const char*, const char*)’ is deprecated (declared at ../node_modules/nan/nan.h:858) [-Wdeprecated-declarations] if (ret != 0) return Nan::ThrowError(Nan::NanErrnoException(errno, "utime", "", *path)); ^ ../fs-ext.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE StatVFS(Nan::NAN_METHOD_ARGS_TYPE)’: ../fs-ext.cc:469:47: warning: ‘v8::Local<v8::Value> Nan::NanErrnoException(int, const char*, const char*, const char*)’ is deprecated (declared at ../node_modules/nan/nan.h:858) [-Wdeprecated-declarations] if (ret != 0) return Nan::ThrowError(Nan::NanErrnoException(errno, "statvfs", "", *path)); ^ ../fs-ext.cc:469:92: warning: ‘v8::Local<v8::Value> Nan::NanErrnoException(int, const char*, const char*, const char*)’ is deprecated (declared at ../node_modules/nan/nan.h:858) [-Wdeprecated-declarations] if (ret != 0) return Nan::ThrowError(Nan::NanErrnoException(errno, "statvfs", "", *path)); ^ SOLINK_MODULE(target) Release/obj.target/fs-ext.node COPY Release/fs-ext.node
please correct the build issues for deprecated exception class
NanErrnoException
is deprecated in favour ofErrnoException