Skip to content

Commit c68953f

Browse files
committed
better image render info msg
Signed-off-by: Mike Cobbett <[email protected]>
1 parent aa8888d commit c68953f

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

pkg/errors/errorMessage.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,5 +221,5 @@ var (
221221
GALASA_WARNING_MAVEN_NO_GALASA_OBR_REPO = NewMessageType("GAL2000W: Warning: Maven configuration file settings.xml should contain a reference to a Galasa repository so that the galasa OBR can be resolved. The official release repository is '%s', and 'pre-release' repository is '%s'", 2000, STACK_TRACE_WANTED)
222222
// Information messages...
223223
GALASA_INFO_FOLDER_DOWNLOADED_TO = NewMessageType("GAL2501I: Downloaded %d artifacts to folder '%s'\n", 2501, STACK_TRACE_NOT_WANTED)
224-
GALASA_INFO_RENDERED_IMAGE_COUNT = NewMessageType("GAL2502I: Rendered %d image files.\n", 2502, STACK_TRACE_NOT_WANTED)
224+
GALASA_INFO_RENDERED_IMAGE_COUNT = NewMessageType("GAL2502I: Rendered %d image files in folder '%s'\n", 2502, STACK_TRACE_NOT_WANTED)
225225
)

pkg/images/imageExpander.go

+2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ func (expander *ImageExpanderImpl) GetExpandedImageFileCount() int {
4040
func (expander *ImageExpanderImpl) ExpandImages(rootFolderPath string) error {
4141
var err error
4242

43+
log.Printf("Expanding any 3270 image descriptions we have into images. Folder scanned: %s\n", rootFolderPath)
44+
4345
var paths []string
4446
paths, err = expander.fs.GetAllFilePaths(rootFolderPath)
4547

pkg/runs/runsDownload.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ func renderImagesInFolder(fileSystem files.FileSystem, folderName string, consol
172172

173173
// Write out a status string to the console about how many files were rendered.
174174
count := expander.GetExpandedImageFileCount()
175-
message := fmt.Sprintf(galasaErrors.GALASA_INFO_RENDERED_IMAGE_COUNT.Template, count)
175+
message := fmt.Sprintf(galasaErrors.GALASA_INFO_RENDERED_IMAGE_COUNT.Template, count, folderName)
176176
console.WriteString(message)
177177
}
178178
return err

0 commit comments

Comments
 (0)