diff --git a/README.md b/README.md index 8a55c2d..ac09be3 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Go Errors Detail -[![Project status](https://img.shields.io/badge/version-v1.1.9-vividgreen.svg)](https://github.com/GabrielHCataldo/go-errors/releases/tag/v1.1.9) +[![Project status](https://img.shields.io/badge/version-v1.2.0-vividgreen.svg)](https://github.com/GabrielHCataldo/go-errors/releases/tag/v1.2.0) [![Go Report Card](https://goreportcard.com/badge/github.com/GabrielHCataldo/go-errors)](https://goreportcard.com/report/github.com/GabrielHCataldo/go-errors) [![Coverage Status](https://coveralls.io/repos/GabrielHCataldo/go-errors/badge.svg?branch=main&service=github)](https://coveralls.io/github/GabrielHCataldo/go-errors?branch=main) [![Open Source Helpers](https://www.codetriage.com/gabrielhcataldo/go-errors/badges/users.svg)](https://www.codetriage.com/gabrielhcataldo/go-errors) diff --git a/errors/errors.go b/errors/errors.go index f98c4a7..5338ceb 100644 --- a/errors/errors.go +++ b/errors/errors.go @@ -181,7 +181,7 @@ func Details(err error) *ErrorDetail { func printMessage(v ...any) string { for i, iv := range v { ivError, ok := iv.(error) - if helper.IsError(iv) && ok { + if helper.IsErrorType(iv) && ok { errDetail := Details(ivError) v[i] = errDetail.message } diff --git a/go.mod b/go.mod index 3d8c26e..b650bab 100644 --- a/go.mod +++ b/go.mod @@ -3,8 +3,8 @@ module github.com/GabrielHCataldo/go-errors go 1.21.3 require ( - github.com/GabrielHCataldo/go-helper v1.3.7 - github.com/GabrielHCataldo/go-logger v1.2.4 + github.com/GabrielHCataldo/go-helper v1.6.6 + github.com/GabrielHCataldo/go-logger v1.2.9 ) require ( diff --git a/go.sum b/go.sum index e2979fd..544a1c6 100644 --- a/go.sum +++ b/go.sum @@ -1,7 +1,7 @@ -github.com/GabrielHCataldo/go-helper v1.3.7 h1:aAUdFNJJyx6YCx9q4+1qaO/jmBkztDwwZiLtnip0kcI= -github.com/GabrielHCataldo/go-helper v1.3.7/go.mod h1:+whI36aUg1BfvLpZWJ8j81+d5iPuxl58ApOJqTIliCU= -github.com/GabrielHCataldo/go-logger v1.2.4 h1:a0IrcAdBa0dh4UUvQEy2kGbif3gGzpvjmPA4nIJOEVA= -github.com/GabrielHCataldo/go-logger v1.2.4/go.mod h1:1Vn/557fErplbuV+1jT/5U4Xi6/8+6cyZaj8niSv2uA= +github.com/GabrielHCataldo/go-helper v1.6.6 h1:fpfsFBd5GERzNjd+QoNJKt52bIidH9gmZsmbPiBD6ho= +github.com/GabrielHCataldo/go-helper v1.6.6/go.mod h1:0lWjHErv57Qkk+w25kbYKTmZYrNe0/0q0wUlt00OmRg= +github.com/GabrielHCataldo/go-logger v1.2.9 h1:3ePElf/a80FLaNGUNc7k2AEfOsegef7K2krOqZTFmxI= +github.com/GabrielHCataldo/go-logger v1.2.9/go.mod h1:d68a0zmUQJZCnqMIG8fze8fkBhjCb0A9QpeN7f32vnA= github.com/cockroachdb/apd v1.1.0 h1:3LFP3629v+1aKXU5Q37mxmRxX/pIu1nijXydLShEq5I= github.com/cockroachdb/apd v1.1.0/go.mod h1:8Sl8LxpKi29FqWXR16WEFZRNSz3SoPzUzeMeY4+DwBQ= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=