Skip to content

Commit

Permalink
change location of err handle
Browse files Browse the repository at this point in the history
  • Loading branch information
tedim52 committed Nov 20, 2024
1 parent f7e5d9d commit 3de186f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cli/cli/commands/run/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,9 @@ func getPackageDependencyYaml(
var err error
if isRemote {
packageYaml, err = enclaveCtx.GetStarlarkPackagePlanYaml(ctx, starlarkScriptOrPackageId, packageArgs)
if err != nil {
return nil, stacktrace.Propagate(err, "An error occurred retrieving plan yaml for provided package.")
}
} else {
fileOrDir, err := os.Stat(starlarkScriptOrPackageId)
if err != nil {
Expand All @@ -694,9 +697,6 @@ func getPackageDependencyYaml(
packageYaml, err = enclaveCtx.GetStarlarkScriptPlanYaml(ctx, string(scriptContentBytes), packageArgs)
}
}
if err != nil {
return nil, stacktrace.Propagate(err, "An error occurred retrieving plan yaml for provided package.")
}
return packageYaml, nil
}

Expand Down

0 comments on commit 3de186f

Please sign in to comment.