Skip to content

Commit

Permalink
messaging change
Browse files Browse the repository at this point in the history
  • Loading branch information
Shivam-nagar23 committed Oct 25, 2024
1 parent c99f97e commit e264092
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions git-sensor/pkg/RepoManages.go
Original file line number Diff line number Diff line change
Expand Up @@ -373,9 +373,11 @@ func (impl RepoManagerImpl) checkoutMaterial(gitCtx git.GitContext, material *sq
impl.logger.Errorw("context error in git checkout", "err", gitCtx.Err())
return material, gitCtx.Err()
} else if err != nil {
impl.logger.Errorw("error encountered in adding git repo", "materialId", material.Id, "err", err, "errMsg", errMsg)
material.CheckoutStatus = false
material.CheckoutMsgAny = util2.BuildDisplayErrorMessage(errMsg, err)
return nil, err
errorMessage := util2.BuildDisplayErrorMessage(errMsg, err)
material.CheckoutMsgAny = errorMessage
return nil, errors.New(errorMessage)
} else {
material.CheckoutLocation = checkoutLocationForFetching
material.CheckoutStatus = true
Expand Down

0 comments on commit e264092

Please # to comment.