HCL: deshadown warnings from Parser.Parse
the func would return when `diags.HasErrors()` but this does not mean that diags is empty.
This commit is contained in:
parent
5ef1893b00
commit
d8c33bc59e
|
@ -103,5 +103,6 @@ func (p *Parser) Parse(path string) ([]packer.Build, hcl.Diagnostics) {
|
||||||
return nil, diags
|
return nil, diags
|
||||||
}
|
}
|
||||||
|
|
||||||
return p.getBuilds(cfg)
|
builds, moreDiags := p.getBuilds(cfg)
|
||||||
|
return builds, append(diags, moreDiags...)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue