Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
feat: Increase logging verbosity for error responses
Browse files Browse the repository at this point in the history
  • Loading branch information
B&R committed Mar 20, 2023
1 parent b0f0600 commit c58ae7f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions http/responses.go
Expand Up @@ -5,6 +5,11 @@ import (
"net/http"
)

type GenericResponseType struct {
Error string `json:"error"`
Message string `json:"message"`
}

func NotFoundResponse(c *gin.Context, err error) {
c.IndentedJSON(404, gin.H{
"status": false,
Expand Down

0 comments on commit c58ae7f

Please sign in to comment.