Просмотр исходного кода

chore(bridge config): add more context to timeout failure

Thales Macedo Garitezi 1 год назад
Родитель
Сommit
593f7601bd
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      apps/emqx_bridge/src/emqx_bridge_v2.erl

+ 3 - 0
apps/emqx_bridge/src/emqx_bridge_v2.erl

@@ -1182,6 +1182,9 @@ post_config_update([ConfRootKey, BridgeType, BridgeName], _Req, NewConf, OldConf
         {error, timeout} ->
             ErrorContext = #{
                 error => uninstall_timeout,
+                bridge_kind => ConfRootKey,
+                type => BridgeType,
+                name => BridgeName,
                 reason => <<
                     "Timed out trying to remove action or source.  Please try again and,"
                     " if the error persists, try disabling the connector before retrying."