Skip to content

Commit

Permalink
Merge pull request #3 from galentuo/iss#1
Browse files Browse the repository at this point in the history
resolves iss #1
  • Loading branch information
jinut2 committed Dec 10, 2021
2 parents 84f5762 + b3f3503 commit c0d416b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions error.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ func (e internalError) CustomError(customMessage string) internalError {
}

// NewInternalError is used to define a new internal error
func NewInternalError(httpCode int, errCode string, errMessage string) internalError {
return internalError{
func NewInternalError(httpCode int, errCode string, errMessage string) *internalError {
return &internalError{
httpCode: httpCode,
errCode: errCode,
message: errMessage,
Expand Down

0 comments on commit c0d416b

Please sign in to comment.