Skip to content

Commit

Permalink
Merge pull request #9 from gabriel-samfira/unmask-create-error
Browse files Browse the repository at this point in the history
Return original error on CreateInstance
  • Loading branch information
gabriel-samfira authored Jun 15, 2024
2 parents 758cd48 + ab13f59 commit a65fd40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func (a *AwsProvider) CreateInstance(ctx context.Context, bootstrapParams params

instanceID, err := a.awsCli.CreateRunningInstance(ctx, spec)
if err != nil {
return a.GetInstance(ctx, instanceID)
return params.ProviderInstance{}, fmt.Errorf("failed to create instance: %w", err)
}

instance := params.ProviderInstance{
Expand Down

0 comments on commit a65fd40

Please sign in to comment.