We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ddd0b7 commit 7a175e9Copy full SHA for 7a175e9
1 file changed
cmd/fioup/diff.go
@@ -62,6 +62,9 @@ func doDiff(cmd *cobra.Command, opts *diffOptions) {
62
"please run the 'check' command to obtain the metadata and try again"))
63
}
64
DieNotNil(err, "failed to obtain diff:")
65
+ if diff.FromTarget.IsUnknown() {
66
+ fmt.Println("Failed to get current target: diff computed assuming no update is installed")
67
+ }
68
fmt.Printf("Update size from version %d to %d:\n", diff.FromTarget.Version, diff.ToTarget.Version)
69
fmt.Printf(" On wire size: %s\n", compose.FormatBytesInt64(diff.WireSize))
70
fmt.Printf(" On disk size: %s\n", compose.FormatBytesInt64(diff.DiskSize))
0 commit comments