Skip to content

Commit

Permalink
Fix error functions signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
pipe01 committed Jan 29, 2021
1 parent 289ea86 commit c51a9dd
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions errors/errors.go
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
package errors

func BadRequest(format string, a ...string) error {
return NewError(400, format, a)
func BadRequest(format string, a ...interface{}) error {
return NewError(400, format, a...)
}

func Unauthorized(format string, a ...string) error {
return NewError(401, format, a)
func Unauthorized(format string, a ...interface{}) error {
return NewError(401, format, a...)
}

func Forbidden(format string, a ...string) error {
return NewError(403, format, a)
func Forbidden(format string, a ...interface{}) error {
return NewError(403, format, a...)
}

func NotFound(format string, a ...string) error {
return NewError(404, format, a)
func NotFound(format string, a ...interface{}) error {
return NewError(404, format, a...)
}

func InternalServerError(format string, a ...string) error {
return NewError(404, format, a)
func InternalServerError(format string, a ...interface{}) error {
return NewError(404, format, a...)
}

0 comments on commit c51a9dd

Please sign in to comment.