From 454f042a2ea7590e915818be6d3eed91ae474d6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Sch=C3=A4ffersmann?= Date: Thu, 14 Nov 2024 17:28:01 +0100 Subject: [PATCH] web/charge_manager: Improve log message when config save fails Properly mention the cause when saving fails because of power_manager/dynamic_load_config. --- software/web/src/modules/charge_manager/settings.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/software/web/src/modules/charge_manager/settings.tsx b/software/web/src/modules/charge_manager/settings.tsx index 2d02a20fb..6ec3bc603 100644 --- a/software/web/src/modules/charge_manager/settings.tsx +++ b/software/web/src/modules/charge_manager/settings.tsx @@ -70,7 +70,7 @@ export class ChargeManagerSettings extends ConfigComponent<'charge_manager/confi safety_margin_pct: this.state.dynamicLoadConfig.safety_margin_pct, }, __("power_manager.script.save_failed")); } catch (e) { - console.log("charge_manager save failed", e); + console.log("charge_manager save failed because of power_manager/dynamic_load_config", e); } let {enable_charge_manager, chargers, maximum_available_current, ...new_values} = cfg;