Skip to content

Commit

Permalink
web/charge_manager: Improve log message when config save fails
Browse files Browse the repository at this point in the history
Properly mention the cause when saving fails because of power_manager/dynamic_load_config.
  • Loading branch information
MattiasTF committed Nov 14, 2024
1 parent 2e1d177 commit 454f042
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion software/web/src/modules/charge_manager/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 454f042

Please sign in to comment.