Compare commits

...

2 Commits

Author SHA1 Message Date
0ddfaf666b v0.0.537 fix goext error print always showing error-type of highest-level error
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 2m12s
2024-10-26 23:38:13 +02:00
9b9a79b4ad v0.0.536 revert bfcodegen changes
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 2m24s
2024-10-22 09:57:06 +02:00
5 changed files with 10 additions and 19 deletions

View File

@@ -167,11 +167,8 @@ func (id {{.Name}}) Valid() error {
return validateID(prefix{{.Name}}, string(id))
}
func (i *{{.Name}}) String() string {
if i == nil {
return "<nil>"
}
return string(*i)
func (i {{.Name}}) String() string {
return string(i)
}
func (i {{.Name}}) Prefix() string {

View File

@@ -69,11 +69,8 @@ func (e {{.EnumTypeName}}) ValuesMeta() []enums.EnumMetaValue {
}
{{if $hasStr}}
func (e *{{.EnumTypeName}}) String() string {
if e == nil {
return "<nil>"
}
return string(*e)
func (e {{.EnumTypeName}}) String() string {
return string(e)
}
{{end}}

View File

@@ -21,11 +21,8 @@ func (i {{.Name}}) MarshalBSONValue() (bsontype.Type, []byte, error) {
}
}
func (i *{{.Name}}) String() string {
if i == nil {
return "<nil>"
}
return string(*i)
func (i {{.Name}}) String() string {
return string(i)
}
func (i {{.Name}}) ObjID() (primitive.ObjectID, error) {

View File

@@ -160,8 +160,8 @@ func (ee *ExErr) FormatLog(lvl LogPrintLevel) string {
for curr := ee; curr != nil; curr = curr.OriginalError {
indent += " "
etype := ee.Type.Key
if ee.Type == TypeWrap {
etype := curr.Type.Key
if curr.Type == TypeWrap {
etype = "~"
}

View File

@@ -1,5 +1,5 @@
package goext
const GoextVersion = "0.0.535"
const GoextVersion = "0.0.537"
const GoextVersionTimestamp = "2024-10-22T09:41:59+0200"
const GoextVersionTimestamp = "2024-10-26T23:38:13+0200"