fix: tighten config and update error handling
This commit is contained in:
@@ -375,11 +375,13 @@ func (s *Service) RunAutoUpdate(ctx context.Context) error {
|
||||
state.Skills[i] = skill
|
||||
continue
|
||||
}
|
||||
if commit, err := s.git.CurrentCommit(skill.LocalPath); err == nil {
|
||||
skill.CurrentCommit = commit
|
||||
} else {
|
||||
commit, err := s.git.CurrentCommit(skill.LocalPath)
|
||||
if err != nil {
|
||||
skill.LastError = err.Error()
|
||||
state.Skills[i] = skill
|
||||
continue
|
||||
}
|
||||
skill.CurrentCommit = commit
|
||||
skill.LastError = ""
|
||||
skill.LastCheckedAt = time.Now().Format(time.RFC3339)
|
||||
state.Skills[i] = skill
|
||||
|
||||
Reference in New Issue
Block a user