@@ -56,8 +56,8 @@ class MountWorker : public Nan::AsyncWorker {
56
56
};
57
57
58
58
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 ());
61
61
}
62
62
63
63
callback->Call (1 , argv);
@@ -94,8 +94,8 @@ class UmountWorker : public Nan::AsyncWorker {
94
94
};
95
95
96
96
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 ());
99
99
}
100
100
101
101
callback->Call (1 , argv);
@@ -190,8 +190,8 @@ NAN_METHOD(MountSync) {
190
190
#endif
191
191
192
192
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 ()));
195
195
}
196
196
197
197
info.GetReturnValue ().Set (Nan::True ());
@@ -217,8 +217,8 @@ NAN_METHOD(UmountSync) {
217
217
#endif
218
218
219
219
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 ()));
222
222
}
223
223
224
224
info.GetReturnValue ().Set (Nan::True ());
0 commit comments