1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-12 10:55:20 +02:00

fix(descriptorUtils) improve error message (#2294)

This commit is contained in:
Oliver Nocon 2020-11-02 13:50:04 +01:00 committed by GitHub
parent 9725b2a9d7
commit edd5ef7709
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,7 @@ const (
func DetermineProjectCoordinates(nameTemplate, versionScheme string, gav Coordinates) (string, string) {
projectName, err := piperutils.ExecuteTemplateFunctions(nameTemplate, sprig.HermeticTxtFuncMap(), gav)
if err != nil {
log.Entry().Warnf("Unable to resolve fortify project name: %v", err)
log.Entry().Warnf("Unable to resolve project name: %v", err)
}
var versionTemplate string
@ -41,7 +41,7 @@ func DetermineProjectCoordinates(nameTemplate, versionScheme string, gav Coordin
projectVersion, err := piperutils.ExecuteTemplateFunctions(versionTemplate, sprig.HermeticTxtFuncMap(), gav)
if err != nil {
log.Entry().Warnf("Unable to resolve fortify project version: %v", err)
log.Entry().Warnf("Unable to resolve project version: %v", err)
}
return projectName, projectVersion
}