Skip to content

Commit 7ee9ec6

Browse files
committed
Replaced deprecated Nan::NanErrnoException by Nan::ErrnoException
1 parent 2d7de50 commit 7ee9ec6

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

mount.cc

+8-8
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ class MountWorker : public Nan::AsyncWorker {
5656
};
5757

5858
if (mounty->error > 0) {
59-
argv[0] = Nan::NanErrnoException(mounty->error, "mount", "",
60-
mounty->devFile.c_str());
59+
argv[0] = Nan::ErrnoException(mounty->error, "mount", "",
60+
mounty->devFile.c_str());
6161
}
6262

6363
callback->Call(1, argv);
@@ -94,8 +94,8 @@ class UmountWorker : public Nan::AsyncWorker {
9494
};
9595

9696
if (mounty->error > 0) {
97-
argv[0] = Nan::NanErrnoException(mounty->error, "umount", "",
98-
mounty->target.c_str());
97+
argv[0] = Nan::ErrnoException(mounty->error, "umount", "",
98+
mounty->target.c_str());
9999
}
100100

101101
callback->Call(1, argv);
@@ -190,8 +190,8 @@ NAN_METHOD(MountSync) {
190190
#endif
191191

192192
if (ret) {
193-
return Nan::ThrowError(Nan::NanErrnoException(errno, "mount", "",
194-
s_devFile.c_str()));
193+
return Nan::ThrowError(Nan::ErrnoException(errno, "mount", "",
194+
s_devFile.c_str()));
195195
}
196196

197197
info.GetReturnValue().Set(Nan::True());
@@ -217,8 +217,8 @@ NAN_METHOD(UmountSync) {
217217
#endif
218218

219219
if (ret) {
220-
return Nan::ThrowError(Nan::NanErrnoException(errno, "umount", "",
221-
s_target.c_str()));
220+
return Nan::ThrowError(Nan::ErrnoException(errno, "umount", "",
221+
s_target.c_str()));
222222
}
223223

224224
info.GetReturnValue().Set(Nan::True());

0 commit comments

Comments
 (0)