From 6bad21b1cbae1c184f712b4d596f690d584ba166 Mon Sep 17 00:00:00 2001 From: Chengzhong Wu Date: Sun, 14 Aug 2022 10:17:28 +0800 Subject: [PATCH] src: fix --heapsnapshot-near-heap-limit error hint PR-URL: https://github.com/nodejs/node/pull/44216 Reviewed-By: Richard Lau Reviewed-By: Luigi Pinca Reviewed-By: Colin Ihrig Reviewed-By: Darshan Sen --- src/node_options.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_options.cc b/src/node_options.cc index 8b339aa76558c9..3daa3cc12debb1 100644 --- a/src/node_options.cc +++ b/src/node_options.cc @@ -140,7 +140,7 @@ void EnvironmentOptions::CheckOptions(std::vector* errors) { } if (heap_snapshot_near_heap_limit < 0) { - errors->push_back("--heap-snapshot-near-heap-limit must not be negative"); + errors->push_back("--heapsnapshot-near-heap-limit must not be negative"); } if (test_runner) {