1
0
mirror of https://github.com/moby/moby.git synced 2025-07-30 18:23:29 +03:00

Use errors.Wrap() in daemon/config

using `errors.Wrap()` preserves the original error

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2018-11-24 14:47:40 +01:00
parent baab736a36
commit a8d2b29e8d
2 changed files with 8 additions and 8 deletions

View File

@ -2485,7 +2485,7 @@ func (s *DockerDaemonSuite) TestRunWithRuntimeFromConfigFile(c *check.C) {
content, err := s.d.ReadLogFile()
c.Assert(err, checker.IsNil)
c.Assert(string(content), checker.Contains, `file configuration validation failed (runtime name 'runc' is reserved)`)
c.Assert(string(content), checker.Contains, `file configuration validation failed: runtime name 'runc' is reserved`)
// Check that we can select a default runtime
config = `