Browse code

fix error-capitalization

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2025/08/05 20:59:07
Showing 2 changed files
... ...
@@ -161,7 +161,7 @@ next:
161 161
 
162 162
 				// it is, so lets update the settings in memory
163 163
 				if mount.Source == nil {
164
-					return errors.New("Plugin config has no mount source")
164
+					return errors.New("plugin config has no mount source")
165 165
 				}
166 166
 				*mount.Source = s.value
167 167
 				continue next
... ...
@@ -181,7 +181,7 @@ next:
181 181
 
182 182
 				// it is, so lets update the settings in memory
183 183
 				if device.Path == nil {
184
-					return errors.New("Plugin config has no device path")
184
+					return errors.New("plugin config has no device path")
185 185
 				}
186 186
 				*device.Path = s.value
187 187
 				continue next
... ...
@@ -200,10 +200,10 @@ func (ps *DockerPluginSuite) TestPluginSet(c *testing.T) {
200 200
 	assert.Check(c, is.Contains(mounts, "bar"))
201 201
 	out, _, err := dockerCmdWithError("plugin", "set", name, "pmount2.source=bar2")
202 202
 	assert.ErrorContains(c, err, "")
203
-	assert.Check(c, is.Contains(out, "Plugin config has no mount source"))
203
+	assert.Check(c, is.Contains(out, "plugin config has no mount source"))
204 204
 	out, _, err = dockerCmdWithError("plugin", "set", name, "pdev2.path=/dev/bar2")
205 205
 	assert.ErrorContains(c, err, "")
206
-	assert.Check(c, is.Contains(out, "Plugin config has no device path"))
206
+	assert.Check(c, is.Contains(out, "plugin config has no device path"))
207 207
 }
208 208
 
209 209
 func (ps *DockerPluginSuite) TestPluginInstallArgs(c *testing.T) {