From 4e1ffd932eb804877dbdcc947e62c9b09ec86b7d 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 8cf90b9095daf3..bcc003afa8d7e6 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) {