Quit soon if the compiler has errors
This commit is contained in:
parent
dc6594f06b
commit
ad42a2837a
|
@ -116,7 +116,7 @@ func plan(cmd *cobra.Command, info *envCmdInfo, opts deployOptions) (*planResult
|
|||
|
||||
// First, compile the package, in preparatin for interpreting it and creating resources.
|
||||
result := compile(cmd, info.Args)
|
||||
if result == nil {
|
||||
if result == nil || !result.B.Ctx().Diag.Success() {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue