Skip to content

Commit 006f015

Browse files
authored
Merge pull request #165 from devhindo/master
Improve clarity of error messages in ErrCreatingComponents
2 parents 1cf4fcd + 5d80c74 commit 006f015

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adapter/error.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ func ErrGenerateComponents(err error) error {
142142

143143
// ErrCreatingComponents
144144
func ErrCreatingComponents(err error) error {
145-
return errors.New(ErrCreatingComponentsCode, errors.Alert, []string{"error creating components"}, []string{err.Error()}, []string{"Invalid Path or version passed in static configuration", "URL passed maybe incorrect", "Version passed maybe incorrect"}, []string{"Make sure to pass correct configuration", "Make sure the URL passed in the configuration is correct", "Make sure a valid version is passed in configuration"})
145+
return errors.New(ErrCreatingComponentsCode, errors.Alert, []string{"error creating components"}, []string{err.Error()}, []string{"Invalid Path or version passed in static configuration", " URL passed maybe incorrect", " Version passed maybe incorrect"}, []string{"Make sure to pass correct configuration", " Make sure the URL passed in the configuration is correct", " Make sure a valid version is passed in configuration"})
146146
}
147147

148148
func ErrRegisterComponents(err error) error {

0 commit comments

Comments
 (0)