Parcourir la source

Merge pull request #10048 from vbatts/vbatts-dm_no_newline

devmapper: remove newline string
Vincent Batts il y a 10 ans
Parent
commit
1c57555285
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      daemon/graphdriver/devmapper/deviceset.go

+ 1 - 1
daemon/graphdriver/devmapper/deviceset.go

@@ -1424,7 +1424,7 @@ func (devices *DeviceSet) UnmountDevice(hash string) error {
 	defer devices.Unlock()
 
 	if info.mountCount == 0 {
-		return fmt.Errorf("UnmountDevice: device not-mounted id %s\n", hash)
+		return fmt.Errorf("UnmountDevice: device not-mounted id %s", hash)
 	}
 
 	info.mountCount--