errors,tty: migrate to use internal/errors.js

PR-URL: https://github.com/nodejs/node/pull/13240
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
This commit is contained in:
Gautam Mittal authored and Michael Dawson committed 2017-06-06 11:55:15 -04:00
1 parent f06c05cf5a
commit 3630ed1c82
3 files changed
+16 -7

No files matched your search

+1
View File
@@ -123,6 +123,7 @@ E('ERR_HTTP_INVALID_STATUS_CODE',
E('ERR_INDEX_OUT_OF_RANGE', 'Index out of range');
E('ERR_INVALID_ARG_TYPE', invalidArgType);
E('ERR_INVALID_CALLBACK', 'callback must be a function');
E('ERR_INVALID_FD', (fd) => `"fd" must be a positive integer: ${fd}`);
E('ERR_INVALID_FILE_URL_HOST', 'File URL host %s');
E('ERR_INVALID_FILE_URL_PATH', 'File URL path %s');
E('ERR_INVALID_HANDLE_TYPE', 'This handle type cannot be sent');