engine, lang: Fix simple test failures

Two bugs sneaked in while pushing old stuff.
This commit is contained in:
James Shubin
2020-01-12 19:35:11 -05:00
parent 3d4b345728
commit fec94aa53a
2 changed files with 2 additions and 2 deletions

View File

@@ -402,7 +402,7 @@ func (obj *DockerContainerRes) Cmp(r engine.Res) error {
return fmt.Errorf("the APIVersion differs") return fmt.Errorf("the APIVersion differs")
} }
if obj.Force != res.Force { if obj.Force != res.Force {
return fmt.Errorf("The Force field differs") return fmt.Errorf("the Force field differs")
} }
return nil return nil
} }

View File

@@ -135,7 +135,7 @@ func (obj *ReadFileFunc) Stream() error {
// We could use it directly, but it feels like less correct. // We could use it directly, but it feels like less correct.
//content, err := obj.data.Fs.ReadFile(path) // open the remote file system //content, err := obj.data.Fs.ReadFile(path) // open the remote file system
if err != nil { if err != nil {
return errwrap.Wrapf(err, "can't read file `%s` (%s)", obj.filename, path) return errwrap.Wrapf(err, "can't read file `%s` (%s)", *obj.filename, path)
} }
result := string(content) // convert to string result := string(content) // convert to string