Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 994bc0d

Browse files
author
Jean-Christophe Sirot
committed
Fix typo in error messages
Signed-off-by: Jean-Christophe Sirot <jean-christophe.sirot@docker.com>
1 parent 79c5a88 commit 994bc0d

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

render/render.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ func substituteParams(allParameters map[string]string, composeContent string) (s
7777
}
7878
//fail on default values enclosed within {}
7979
if fail := groups["defvals"]; fail != "" {
80-
return "", errors.Errorf("The default value syntax of compose file is not supported in Docker App. "+
80+
return "", errors.Errorf("The default value syntax of Compose files is not supported in Docker App. "+
8181
"The characters ':' and '-' are not allowed in parameter names. Invalid parameter: %s.", match[0])
8282
}
8383
if fail := groups["errormsg"]; fail != "" {
84-
return "", errors.Errorf("The custom error message syntax of compose file is not supported in Docker App. "+
84+
return "", errors.Errorf("The custom error message syntax of Compose files is not supported in Docker App. "+
8585
"The characters ':' and '?' are not allowed in parameter names. Invalid parameter: %s.", match[0])
8686
}
8787
if skip := groups["skip"]; skip != "" {

render/render_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ services:
8383
userParameters := map[string]string{
8484
"front.port": "4242",
8585
}
86-
checkRenderError(t, userParameters, composeFile, "The default value syntax of compose file is not supported in Docker App. "+
86+
checkRenderError(t, userParameters, composeFile, "The default value syntax of Compose files is not supported in Docker App. "+
8787
"The characters ':' and '-' are not allowed in parameter names. Invalid parameter: ${front.port:-9090}.")
8888

8989
composeFile = `
@@ -93,7 +93,7 @@ services:
9393
ports:
9494
- "${front.port-9090}:80"
9595
`
96-
checkRenderError(t, userParameters, composeFile, "The default value syntax of compose file is not supported in Docker App. "+
96+
checkRenderError(t, userParameters, composeFile, "The default value syntax of Compose files is not supported in Docker App. "+
9797
"The characters ':' and '-' are not allowed in parameter names. Invalid parameter: ${front.port-9090}.")
9898
composeFile = `
9999
version: "3.6"
@@ -102,7 +102,7 @@ services:
102102
ports:
103103
- "${front.port:?Error}:80"
104104
`
105-
checkRenderError(t, userParameters, composeFile, "The custom error message syntax of compose file is not supported in Docker App. "+
105+
checkRenderError(t, userParameters, composeFile, "The custom error message syntax of Compose files is not supported in Docker App. "+
106106
"The characters ':' and '?' are not allowed in parameter names. Invalid parameter: ${front.port:?Error}.")
107107

108108
composeFile = `
@@ -112,7 +112,7 @@ services:
112112
ports:
113113
- "${front.port?Error:unset variable}:80"
114114
`
115-
checkRenderError(t, userParameters, composeFile, "The custom error message syntax of compose file is not supported in Docker App. "+
115+
checkRenderError(t, userParameters, composeFile, "The custom error message syntax of Compose files is not supported in Docker App. "+
116116
"The characters ':' and '?' are not allowed in parameter names. Invalid parameter: ${front.port?Error:unset variable}.")
117117

118118
}

0 commit comments

Comments
 (0)