瀏覽代碼

chore: apply code review

Zhongwen Deng 2 年之前
父節點
當前提交
80205d9704
共有 3 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      apps/emqx/src/emqx_schema.erl
  2. 1 1
      changes/ce/fix-10119.en.md
  3. 1 1
      changes/ce/fix-10119.zh.md

+ 1 - 1
apps/emqx/src/emqx_schema.erl

@@ -2818,7 +2818,7 @@ is_port_number(Port) ->
 
 parse_port(Port) ->
     case string:to_integer(string:strip(Port)) of
-        {P, ""} when P < 0 -> throw("port_number_too_small");
+        {P, ""} when P < 0 -> throw("port_number_must_be_positive");
         {P, ""} when P > 65535 -> throw("port_number_too_large");
         {P, ""} -> P;
         _ -> throw("bad_port_number")

+ 1 - 1
changes/ce/fix-10119.en.md

@@ -1 +1 @@
-Fix crash when `statsd.server` is empty
+Fix crash when `statsd.server` is set to an empty string.

+ 1 - 1
changes/ce/fix-10119.zh.md

@@ -1 +1 @@
-修复 `statsd.server` 为空时启动崩溃的问题
+修复 `statsd.server` 配置为空字符串时启动崩溃的问题