mirror of https://github.com/hashicorp/terraform
Previously we were using fmt.Sprintf and thus forcing the stringification of the wrapped error. Using errwrap allows us to unpack the original error at the top of the stack, which is useful when the wrapped error is really a hcl.Diagnostics containing potentially-multiple errors and possibly warnings.pull/16272/head
parent
61cd3bf02a
commit
fc20f419dd
Loading…
Reference in new issue