Apply suggestion from @cubic-dev-ai[bot]

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
This commit is contained in:
Theodor Midtlien
2026-09-16 16:00:25 +02:00
committed by GitHub
co-authored by cubic-dev-ai[bot]
parent f469ee98de
commit 4c2e4e055c
+3
View File
@@ -306,6 +306,9 @@ func (s *Server) Start() error {
// another users profile, so the daemon comes up on the default
// profile instead of refusing to start.
log.Errorf("starting on the default profile, the active one could not be resolved: %v", err)
if err := s.profileManager.SetActiveProfileStateToDefault(); err != nil {
return fmt.Errorf("set active profile to default: %w", err)
}
activeProf = &profilemanager.ActiveProfileState{ID: profilemanager.DefaultProfileName}
config, existingConfig, err = s.getConfig(activeProf)
}