vmware / alb-sdk

Avi SDK and Utilities
Apache License 2.0
70 stars 71 forks source link

Add a space to the error message #1983

Closed honghaiw closed 2 years ago

honghaiw commented 2 years ago

Describe the bug

Hi team, could you help to add a space to the error messages master/go/session/avisession.go line 1353 and line 1355? it would be better to change "is found" to " is found". if res.Count == 0 { return errors.New("No object of type " + obj + " with name " + opts.name + "is found") } else if res.Count > 1 { return errors.New("More than one object of type " + obj + " with name " + opts.name + "is found") }

Reproduction steps

1. Get an object with error name from Avi Controller. The return error message will be like:
"No object of type serviceenginegroup with name test-se-groupis found"

Expected behavior

There should be a space between opts.name and "is found", for instance, the error message should be: "No object of type serviceenginegroup with name test-se-group is found"

Additional context

No response

mayank-avinetworks commented 2 years ago

@honghaiw , we will do that, thanks

mayank-avinetworks commented 2 years ago

The issue is resolved, the asked log is improved already.