Signed-off-by: Joel Longtine <joel@dagger.io>
This commit is contained in:
Joel Longtine
2022-03-10 15:15:50 -07:00
parent b3ac2b7167
commit 43b9df74a8
3 changed files with 72 additions and 1 deletions

View File

@@ -130,7 +130,13 @@ func doHelp(cmd *cobra.Command, _ []string) {
p, err := loadPlan()
if err != nil {
errorMsg = "Error: failed to load plan\n\n"
errstring := err.Error()
if strings.Contains(errstring, "cannot find package") && strings.Contains(errstring, "alpha.dagger.io") {
errorMsg = "Attempting to load a dagger 0.1.0 project. Please upgrade your config to be compatible with this version of dagger. Contact the Dagger team if you need help!\n\n"
// lg.Fatal().Msg("Attempting to load a dagger 0.1.0 project. Please upgrade your config to be compatible with this version of dagger. Contact the Dagger team if you need help!")
} else {
errorMsg = "Error: failed to load plan\n\n"
}
} else {
loadedMsg = "Plan loaded from " + planPath
actionLookupPath := getTargetPath(cmd.Flags().Args())