summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/api/cli.md6
-rw-r--r--src/node_options.cc2
2 files changed, 4 insertions, 4 deletions
diff --git a/doc/api/cli.md b/doc/api/cli.md
index ad7b65e90a..ced8cece1d 100644
--- a/doc/api/cli.md
+++ b/doc/api/cli.md
@@ -131,6 +131,9 @@ conjunction with native stack and other runtime environment data.
added: v6.0.0
-->
+Enable FIPS-compliant crypto at startup. (Requires Node.js to be built with
+`./configure --openssl-fips`.)
+
### `--entry-type=type`
<!-- YAML
added: REPLACEME
@@ -144,9 +147,6 @@ the file extension and the `"type"` field in the nearest parent `package.json`.
Works for executing a file as well as `--eval`, `--print`, `STDIN`.
-Enable FIPS-compliant crypto at startup. (Requires Node.js to be built with
-`./configure --openssl-fips`.)
-
### `--es-module-specifier-resolution=mode`
<!-- YAML
added: REPLACEME
diff --git a/src/node_options.cc b/src/node_options.cc
index bd20b6385d..31dca5bf17 100644
--- a/src/node_options.cc
+++ b/src/node_options.cc
@@ -113,7 +113,7 @@ void EnvironmentOptions::CheckOptions(std::vector<std::string>* errors) {
"--experimental-modules to be enabled");
}
if (module_type != "commonjs" && module_type != "module") {
- errors->push_back("--entry-type must \"module\" or \"commonjs\"");
+ errors->push_back("--entry-type must be \"module\" or \"commonjs\"");
}
}