Skip to content

Commit

Permalink
v2.1.2: Updated func (e *E) Error() string implementation to handle…
Browse files Browse the repository at this point in the history
… nil pointer references.
  • Loading branch information
mkenney committed May 12, 2021
1 parent 60b02fc commit 378f9b0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- **Minor**: feature additions, removal of deprecated features
- **Patch**: bug fixes, backward compatible model and function changes, etc.

# v2.1.2 - 2021-05-12
#### Added
* n/a

#### Changed
* Updated `func (e *E) Error() string` implementation to handle nil pointer references.

#### Removed
* n/a

# v2.1.1 - 2020-05-30
#### Added
* n/a
Expand Down
3 changes: 3 additions & 0 deletions error.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ func (e *E) Caller() std_caller.Caller {

// Error implements std_error.Error.
func (e *E) Error() string {
if nil == e.err {
return ""
}
return e.err.Error()
}

Expand Down

0 comments on commit 378f9b0

Please sign in to comment.