-
Notifications
You must be signed in to change notification settings - Fork 30.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fs.watch throws exception when recursive is used in incompatible platform #29947
Changes from 13 commits
fa5984b
b731dac
20d6e4c
98e7561
d985a42
bdb2a7d
c6373f3
194ca4d
a0b5dd5
b0fc0eb
cb24297
7e23cef
120a471
632c0e1
b3db344
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -803,6 +803,10 @@ E('ERR_FALSY_VALUE_REJECTION', function(reason) { | |
this.reason = reason; | ||
return 'Promise was rejected with falsy value'; | ||
}, Error); | ||
E('ERR_FEATURE_UNAVAILABLE_ON_PLATFORM', | ||
'The feature %s is unavailable on the current platform' + | ||
', which is being used to run Node.js', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: the message could actually include the used platform. That way it would be easier to identify the used platform in case the logs would e.g., be transferred to a third party application that monitors the errors. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm sorry, I currently don't have time for continue working on this PR. If someone else would like to make this change I'll appreciate it. thanks. |
||
TypeError); | ||
E('ERR_FS_FILE_TOO_LARGE', 'File size (%s) is greater than 2 GB', RangeError); | ||
E('ERR_FS_INVALID_SYMLINK_TYPE', | ||
'Symlink type must be one of "dir", "file", or "junction". Received "%s"', | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a nit... I would just make this more generic like
ERR_NOT_IMPLEMENTED
orERR_NOT_AVAILABLE
, but it's not criticalThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there is a great value of knowing this error occurs only on one platform, and that it isn't something that node.js itself doesn't support.