Skip to content

Commit

Permalink
Fix TO DS error ID to print correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
rob05c authored and dangogh committed Jun 28, 2018
1 parent fe66616 commit 99d9bab
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -534,11 +534,11 @@ func (ds *TODeliveryServiceV13) Delete(db *sqlx.DB, user auth.CurrentUser) (erro
}
xmlID, ok, err := ds.V12().GetXMLID(tx)
if err != nil {
log.Errorln("TODeliveryServiceV13.Delete ID '" + string(*ds.ID) + "' loading XML ID: " + err.Error())
log.Errorln("TODeliveryServiceV13.Delete ID '" + strconv.Itoa(*ds.ID) + "' loading XML ID: " + err.Error())
return tc.DBError, tc.SystemError
}
if !ok {
log.Errorln("TODeliveryServiceV13.Delete ID '" + string(*ds.ID) + "' had no delivery service!")
log.Errorln("TODeliveryServiceV13.Delete ID '" + strconv.Itoa(*ds.ID) + "' had no delivery service!")
return tc.DBError, tc.DataMissingError
}
ds.XMLID = &xmlID
Expand Down

0 comments on commit 99d9bab

Please sign in to comment.