Browse Source

Fix mount opts error message.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
Daniel Nephin 9 năm trước cách đây
mục cha
commit
c8659d3cc5
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      api/client/service/opts.go

+ 1 - 1
api/client/service/opts.go

@@ -217,7 +217,7 @@ func (m *MountOpt) Set(value string) error {
 			}
 			}
 			setValueOnMap(volumeOptions().DriverConfig.Options, value)
 			setValueOnMap(volumeOptions().DriverConfig.Options, value)
 		default:
 		default:
-			return fmt.Errorf("unexpected key '%s' in '%s'", key, value)
+			return fmt.Errorf("unexpected key '%s' in '%s'", key, field)
 		}
 		}
 	}
 	}