Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
adreed-msft committed Oct 21, 2024
1 parent ce138ac commit cd47d6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ste/mgr-JobPartTransferMgr.go
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@ func (jptm *jobPartTransferMgr) failActiveTransfer(typ transferErrorCode, descri
!jptm.jobPartMgr.(*jobPartMgr).jobMgr.IsDaemon() {
// quit right away, since without proper authentication no work can be done
// display a clear message
if strings.Index(descriptionOfWhereErrorOccurred, "tags") != -1 {
if strings.Contains(descriptionOfWhereErrorOccurred, "tags") {
common.GetLifecycleMgr().Info(fmt.Sprintf("Authorization failed during an attempt to set tags, please ensure you have the appropriate Tags permission %s", err.Error()))
} else {
common.GetLifecycleMgr().Info(fmt.Sprintf("Authentication failed, it is either not correct, or expired, or does not have the correct permission %s", err.Error()))
Expand Down

0 comments on commit cd47d6b

Please sign in to comment.