From e9b532b76e02bbf0613560b98e6df422f86b8cf8 Mon Sep 17 00:00:00 2001 From: "Tim O. Peters" Date: Sun, 31 Dec 2017 23:48:49 +0100 Subject: [PATCH] Create consistent behavior for fs module across platforms Add error message for --- lib/internal/errors.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/internal/errors.js b/lib/internal/errors.js index a057e628d90fcd..53b7b43d282495 100644 --- a/lib/internal/errors.js +++ b/lib/internal/errors.js @@ -302,6 +302,8 @@ E('ERR_ENCODING_NOT_SUPPORTED', 'The "%s" encoding is not supported'); E('ERR_FALSY_VALUE_REJECTION', 'Promise was rejected with falsy value'); E('ERR_FS_INVALID_SYMLINK_TYPE', 'Symlink type must be one of "dir", "file", or "junction". Received "%s"'); +E('ERR_FS_EISDIR_PATH', + 'Illegal operation on a directory". open "%s"'); E('ERR_HTTP2_ALREADY_SHUTDOWN', 'Http2Session is already shutdown or destroyed'); E('ERR_HTTP2_ALTSVC_INVALID_ORIGIN',