mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 19:13:34 +00:00
chore: fix Errorf arguments
This commit is contained in:
@@ -300,7 +300,7 @@ func parseVolumeFlagValue(volume string) (api.VolumeSpec, api.VolumeMount, error
|
|||||||
parts := strings.Split(volume, ":")
|
parts := strings.Split(volume, ":")
|
||||||
switch len(parts) {
|
switch len(parts) {
|
||||||
case 1:
|
case 1:
|
||||||
return spec, mount, fmt.Errorf("invalid format, must contain at least one separator ':'", volume)
|
return spec, mount, fmt.Errorf("invalid format, must contain at least one separator ':'")
|
||||||
case 2, 3:
|
case 2, 3:
|
||||||
// Format: (volume_name|/host/path):/container/path[:opts]
|
// Format: (volume_name|/host/path):/container/path[:opts]
|
||||||
if !strings.HasPrefix(parts[1], "/") {
|
if !strings.HasPrefix(parts[1], "/") {
|
||||||
|
|||||||
Reference in New Issue
Block a user