Skip to content
Permalink
Browse files

fix Errorf format string

  • Loading branch information...
ericchiang authored and bradfitz committed Mar 14, 2019
1 parent 75cd5ed commit 9fcbd1dfba08b01679142f28869ff34345e2f5a2
Showing with 1 addition and 1 deletion.
  1. +1 −1 part.go
@@ -92,7 +92,7 @@ func (p partitionResizer) Resize() error {
return fmt.Errorf("`blkid -o export %s` lacked PTTYPE line, got: %s", diskDev, out)
}
if got := string(m[1]); got != "dos" {
return fmt.Errorf("Old sfdisk and `blkid -o export %s` reports unexpected PTTYPE=%s", got)
return fmt.Errorf("Old sfdisk and `blkid -o export %s` reports unexpected PTTYPE=%s", diskDev, got)
}
default:
// It might work, but fail as a precaution. Untested.

0 comments on commit 9fcbd1d

Please sign in to comment.
You can’t perform that action at this time.