When using Terraform as a library, I noticed that when the Subject of hcl.diagnotic is nil, it returns unnatural error output like the following:
<nil>: Failed to read file; The file "example1.tfvars" could not be read.
Errors that failed to read the file naturally have no hcl.Range. In such a case, I think that it should not include the Subject in error message. What do you think?
When using Terraform as a library, I noticed that when the Subject of
hcl.diagnotic
is nil, it returns unnatural error output like the following:Errors that failed to read the file naturally have no
hcl.Range
. In such a case, I think that it should not include the Subject in error message. What do you think?