Skip to content

Commit 58eb3dd

Browse files
committed
Using right error directive
Signed-off-by: Diogenes Fernandes <diofeher@gmail.com>
1 parent 855e14d commit 58eb3dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

github/data_source_github_actions_organization_remove_token.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func dataSourceGithubActionsOrganizationRemoveTokenRead(d *schema.ResourceData,
3232
log.Printf("[DEBUG] Creating a GitHub Actions organization remove token for %s", owner)
3333
token, _, err := client.Actions.CreateOrganizationRemoveToken(context.TODO(), owner)
3434
if err != nil {
35-
return fmt.Errorf("error creating a GitHub Actions organization remove token for %s: %s", owner, err)
35+
return fmt.Errorf("error creating a GitHub Actions organization remove token for %s: %w", owner, err)
3636
}
3737

3838
d.SetId(owner)

0 commit comments

Comments
 (0)