Quit soon if the compiler has errors

This commit is contained in:
joeduffy 2017-06-29 14:47:08 -07:00
parent dc6594f06b
commit ad42a2837a

View file

@ -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
}