From 4ac560601e4c91a0b8fe27d224802fa9e4849d71 Mon Sep 17 00:00:00 2001 From: Gabriel Cataldo Date: Wed, 7 Feb 2024 20:43:40 -0300 Subject: [PATCH] Bug fix --- README.md | 2 +- errors/errors.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ed0b280..b421f34 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Go Errors Detail -[![Project status](https://img.shields.io/badge/version-v1.1.6-vividgreen.svg)](https://github.com/GabrielHCataldo/go-errors/releases/tag/v1.1.6) +[![Project status](https://img.shields.io/badge/version-v1.1.7-vividgreen.svg)](https://github.com/GabrielHCataldo/go-errors/releases/tag/v1.1.7) [![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 b091289..e168d71 100644 --- a/errors/errors.go +++ b/errors/errors.go @@ -167,6 +167,7 @@ func Details(err error) *ErrorDetail { } else { file, line, funcName = helper.GetCallerInfo(2) debugStack = string(debug.Stack()) + message = err.Error() } return &ErrorDetail{ file: file,