File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ func (o *projectOptions) validate() error {
172
172
}
173
173
174
174
if util .ProjectExist () {
175
- return fmt .Errorf ("Failed to initialize project because project is already initialized" )
175
+ return fmt .Errorf ("failed to initialize project because project is already initialized" )
176
176
}
177
177
178
178
return nil
@@ -190,16 +190,16 @@ func fetchAndCheckGoVersion() error {
190
190
cmd := exec .Command ("go" , "version" )
191
191
out , err := cmd .Output ()
192
192
if err != nil {
193
- return fmt .Errorf ("Failed to retrieve 'go version': %v" , string (out ))
193
+ return fmt .Errorf ("failed to retrieve 'go version': %v" , string (out ))
194
194
}
195
195
196
196
split := strings .Split (string (out ), " " )
197
197
if len (split ) < 3 {
198
- return fmt .Errorf ("Found invalid Go version: %q" , string (out ))
198
+ return fmt .Errorf ("found invalid Go version: %q" , string (out ))
199
199
}
200
200
goVer := split [2 ]
201
201
if err := checkGoVersion (goVer ); err != nil {
202
- return fmt .Errorf ("Go version '%s' is incompatible because '%s'" , goVer , err )
202
+ return fmt .Errorf ("go version '%s' is incompatible because '%s'" , goVer , err )
203
203
}
204
204
return nil
205
205
}
Original file line number Diff line number Diff line change @@ -265,7 +265,7 @@ func (api *API) scaffoldV2() error {
265
265
func (api * API ) validateResourceGroup (r * resource.Resource ) error {
266
266
for _ , existingGroup := range api .project .ResourceGroups () {
267
267
if strings .ToLower (r .Group ) != strings .ToLower (existingGroup ) {
268
- return fmt .Errorf ("Group '%s' is not same as existing group '%s'. Multiple groups are not supported yet." , r .Group , existingGroup )
268
+ return fmt .Errorf ("group '%s' is not same as existing group '%s'. Multiple groups are not supported yet." , r .Group , existingGroup )
269
269
}
270
270
}
271
271
return nil
You can’t perform that action at this time.
0 commit comments