From 4c5a1ca8fde57f2bab39571551f591aa7275d356 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Sat, 9 Sep 2017 11:41:07 +0200 Subject: [PATCH 1/2] errors: fix ERR_MODULE_RESOLUTION_LEGACY message Refs: https://github.com/nodejs/node/pull/14369 --- lib/internal/errors.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/errors.js b/lib/internal/errors.js index 10e5be8a44056d..5aad2aae3883f5 100644 --- a/lib/internal/errors.js +++ b/lib/internal/errors.js @@ -231,7 +231,7 @@ E('ERR_METHOD_NOT_IMPLEMENTED', 'The %s method is not implemented'); E('ERR_MISSING_ARGS', missingArgs); E('ERR_MISSING_MODULE', 'Cannot find module %s'); E('ERR_MODULE_RESOLUTION_LEGACY', '%s not found by import in %s.' + - 'Legacy behavior in require would have found it at %s'); + ' Legacy behavior in require would have found it at %s'); E('ERR_MULTIPLE_CALLBACK', 'Callback called multiple times'); E('ERR_NAPI_CONS_FUNCTION', 'Constructor must be a function'); E('ERR_NAPI_CONS_PROTOTYPE_OBJECT', 'Constructor.prototype must be an object'); From f50218d2a27f3869dcb19ca924851d306e93edf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Mon, 11 Sep 2017 00:35:51 +0200 Subject: [PATCH 2/2] require -> require() --- lib/internal/errors.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/errors.js b/lib/internal/errors.js index 5aad2aae3883f5..73d7a0bc835b3c 100644 --- a/lib/internal/errors.js +++ b/lib/internal/errors.js @@ -231,7 +231,7 @@ E('ERR_METHOD_NOT_IMPLEMENTED', 'The %s method is not implemented'); E('ERR_MISSING_ARGS', missingArgs); E('ERR_MISSING_MODULE', 'Cannot find module %s'); E('ERR_MODULE_RESOLUTION_LEGACY', '%s not found by import in %s.' + - ' Legacy behavior in require would have found it at %s'); + ' Legacy behavior in require() would have found it at %s'); E('ERR_MULTIPLE_CALLBACK', 'Callback called multiple times'); E('ERR_NAPI_CONS_FUNCTION', 'Constructor must be a function'); E('ERR_NAPI_CONS_PROTOTYPE_OBJECT', 'Constructor.prototype must be an object');