Skip to content

Commit

Permalink
Address comments from Misty.
Browse files Browse the repository at this point in the history
Signed-off-by: Liping Xue <lipingxue@gmail.com>
  • Loading branch information
lipingxue committed Jul 24, 2017
1 parent c59d4fd commit 7761b1b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cli/compose/loader/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -445,10 +445,10 @@ func LoadVolumes(source map[string]interface{}) (map[string]types.VolumeConfig,
volume.External.Name = name
volumes[name] = volume
} else {
logrus.Warnf("volume %s: volume.external.name is deprecated, please use volume.name", name)
logrus.Warnf("volume %s: volume.external.name is deprecated in favor of volume.name", name)

if volume.Name != "" {
return nil, errors.Errorf("volume %s: volume.external.name and volume.name conflict, only use volume.name", name)
return nil, errors.Errorf("volume %s: volume.external.name and volume.name conflict; only use volume.name", name)
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion cli/compose/loader/loader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ volumes:

assert.Error(t, err)
fmt.Println(err)
assert.Contains(t, err.Error(), "volume.external.name and volume.name conflict, only use volume.name")
assert.Contains(t, err.Error(), "volume.external.name and volume.name conflict; only use volume.name")
assert.Contains(t, err.Error(), "external_volume")
}

Expand Down

0 comments on commit 7761b1b

Please sign in to comment.