Print error for 0.1.0 plans being loaded
Signed-off-by: Joel Longtine <joel@dagger.io>
This commit is contained in:
parent
102ec55d4e
commit
2d4b6ef2ee
@ -58,8 +58,14 @@ var doCmd = &cobra.Command{
|
|||||||
|
|
||||||
p, err := loadPlan()
|
p, err := loadPlan()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
errstring := err.Error()
|
||||||
|
|
||||||
|
if strings.Contains(errstring, "cannot find package") && strings.Contains(errstring, "alpha.dagger.io") {
|
||||||
|
lg.Fatal().Msg("Attempting to load a 0.1.0 plan. Please upgrade your plan to use the latest version of dagger. Contact the Dagger team if you need help!")
|
||||||
|
} else {
|
||||||
lg.Fatal().Err(err).Msg("failed to load plan")
|
lg.Fatal().Err(err).Msg("failed to load plan")
|
||||||
}
|
}
|
||||||
|
}
|
||||||
target := getTargetPath(args)
|
target := getTargetPath(args)
|
||||||
|
|
||||||
doneCh := common.TrackCommand(ctx, cmd, &telemetry.Property{
|
doneCh := common.TrackCommand(ctx, cmd, &telemetry.Property{
|
||||||
|
Reference in New Issue
Block a user