File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
plugins/source/aws/codegen/services Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import (
1313 "strings"
1414 "text/template"
1515
16- caser "github.com/cloudquery/plugin-sdk/caser"
16+ "github.com/cloudquery/plugin-sdk/caser"
1717)
1818
1919//go:embed templates/*.go.tpl
@@ -156,7 +156,10 @@ func Generate() error {
156156 return fmt .Errorf ("failed to execute template: %w" , err )
157157 }
158158 filePath := path .Join (path .Dir (filename ), fmt .Sprintf ("../../client/services/%s.go" , service .PackageName ))
159- formatAndWriteFile (filePath , buff )
159+ err := formatAndWriteFile (filePath , buff )
160+ if err != nil {
161+ return fmt .Errorf ("failed to format and write file for service %v: %w" , service .Name , err )
162+ }
160163 }
161164
162165 for _ , custom := range customClients {
You can’t perform that action at this time.
0 commit comments