Skip to content

Commit

Permalink
🐛 ensure we return an err when cloudtrail trail cannot be found
Browse files Browse the repository at this point in the history
  • Loading branch information
vjeffrey committed Feb 26, 2024
1 parent 09d7ab2 commit 1d69793
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/aws/resources/aws_cloudtrail.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func initAwsCloudtrailTrail(runtime *plugin.Runtime, args map[string]*llx.RawDat
return args, trail, nil
}
}
return args, nil, err
return args, nil, errors.New("cloudtrail trail does not exist")
}

func (a *mqlAwsCloudtrail) getTrails(conn *connection.AwsConnection) []*jobpool.Job {
Expand Down

0 comments on commit 1d69793

Please sign in to comment.