We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 113b08c commit 6ddd0b7Copy full SHA for 6ddd0b7
1 file changed
pkg/api/diff.go
@@ -66,7 +66,7 @@ func Diff(ctx context.Context, cfg *config.Config, fromVersion, toVersion int, o
66
if lastUpdate, err := update.GetLastSuccessfulUpdate(cfg.ComposeConfig()); err == nil {
67
fromTarget = targets.GetTargetByID(lastUpdate.ClientRef)
68
} else {
69
- return nil, fmt.Errorf("failed to get current target: %w", err)
+ fromTarget = target.UnknownTarget
70
}
71
72
fromTarget = targets.GetTargetByVersion(fromVersion)
0 commit comments