Skip to content

Commit 6a36826

Browse files
committed
[-] added awesomego badge
1 parent 897d503 commit 6a36826

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
[![Go Report Card](https://goreportcard.com/badge/github.com/bnkamalesh/errors)](https://goreportcard.com/report/github.com/bnkamalesh/errors)
66
[![Maintainability](https://api.codeclimate.com/v1/badges/a86629ab167695d4db7f/maintainability)](https://codeclimate.com/github/bnkamalesh/errors)
77
[![](https://godoc.org/github.com/nathany/looper?status.svg)](https://pkg.go.dev/github.com/bnkamalesh/errors?tab=doc)
8+
[![](https://awesome.re/mentioned-badge.svg)](https://github.com/avelino/awesome-go#error-handling)
89

910
# Errors
1011

@@ -15,7 +16,7 @@ Errors package is a drop-in replacement of the built-in Go errors package with n
1516
3. File & line number prefixed to errors
1617
4. HTTP status code and user friendly message (wrapped messages are concatenated) for all error types
1718

18-
In case of nested errors, the messages (in case of nesting with this package's error) & errors are also looped through.
19+
In case of nested errors, the messages (in case of nesting with this package's error) & errors are also looped through the full chain of errors.
1920

2021
### Prerequisites
2122

@@ -78,7 +79,7 @@ A common annoyance with Go errors which most people are aware of is, figuring ou
7879

7980
### HTTP status code & message
8081

81-
The function `errors.HTTPStatusCodeMessage(error) (int, string, bool)` returns the HTTP status code, message, and a boolean value. The boolean if true, means the error is of type *Error from this package.
82+
The function `errors.HTTPStatusCodeMessage(error) (int, string, bool)` returns the HTTP status code, message, and a boolean value. The boolean is true, if the error is of type *Error from this package.
8283
If error is nested with multiple errors, it loops through all the levels and returns a single concatenated message. This is illustrated in the 'How to use?' section
8384

8485
## How to use?

0 commit comments

Comments
 (0)