Zhongwen Deng 2 лет назад
Родитель
Сommit
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` 配置为空字符串时启动崩溃的问题