diff --git a/ste/mgr-JobPartTransferMgr.go b/ste/mgr-JobPartTransferMgr.go index ec8390e6c..d0bb3e855 100644 --- a/ste/mgr-JobPartTransferMgr.go +++ b/ste/mgr-JobPartTransferMgr.go @@ -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()))