Skip to content

Commit

Permalink
chore: Wrap the error returned when running the repository handler go…
Browse files Browse the repository at this point in the history
…routine into a more descriptive one
  • Loading branch information
rm3l committed Sep 24, 2022
1 parent ac88eb5 commit 87fbe40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ Caution: this will hard-reset the branch of the destination repository to match
return func() error {
err := reposync.HandleRepository(ctx, dryRun, output, organization, repo, cloneProtocol, force)
if err != nil {
log.Println(fmt.Sprintf("[warn] an error occurred while handling repo %q:", repo.Name), err)
return fmt.Errorf("error while handling repo %q: %w", repo.Name, err)
}
return err
return nil
}
}(repository))
}
Expand Down

0 comments on commit 87fbe40

Please sign in to comment.