Skip to content

Commit

Permalink
cli: fix spacing for port range error
Browse files Browse the repository at this point in the history
PR-URL: nodejs#54495
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
RedYetiDev authored and tpoisseau committed Nov 21, 2024
1 parent 0f021b4 commit 522fc88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_options.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1165,7 +1165,7 @@ inline uint16_t ParseAndValidatePort(const std::string_view port,

if (r.ec == std::errc::result_out_of_range ||
(result != 0 && result < 1024)) {
errors->push_back(" must be 0 or in range 1024 to 65535.");
errors->push_back("must be 0 or in range 1024 to 65535.");
}

return result;
Expand Down

0 comments on commit 522fc88

Please sign in to comment.