Add missing conditional

This commit is contained in:
Lennart Kats 2024-09-11 10:33:14 +02:00
parent 01c381ffde
commit b92f1e8bd1
No known key found for this signature in database
GPG Key ID: 1EB8B57673197023
1 changed files with 3 additions and 1 deletions

View File

@ -84,7 +84,9 @@ task or a Python wheel task, the second example applies.
terraform.StatePull(),
terraform.Load(terraform.ErrorOnEmptyState),
))
return diags.Error()
if err := diags.Error(); err != nil {
return err
}
runner, err := run.Find(b, args[0])
if err != nil {