tfgen.convert.Convert panics instead of returning an error #56
Labels
impact/panic
This bug represents a panic or unexpected crash
kind/bug
Some behavior is incorrect or out of spec
resolution/wont-fix
This issue won't be fixed
The code does the meat of converting HCL panics when it encounters an error, which complicates the code for downstream callers, like
tfbridge.convertHCL()
:https://github.com/pulumi/pulumi-terraform-bridge/blob/master/pkg/tf2pulumi/convert/tf12.go#L161-L167
If we panic for good reason, we need to document the reasoning in a comment. Otherwise, we should return an error in order to allow downstream callers to handle issues parsing HCL as they see fit.
The text was updated successfully, but these errors were encountered: