summaryrefslogtreecommitdiffstats
path: root/lib/common/error.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/common/error.go')
-rw-r--r--lib/common/error.go13
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/common/error.go b/lib/common/error.go
deleted file mode 100644
index d03c176..0000000
--- a/lib/common/error.go
+++ /dev/null
@@ -1,13 +0,0 @@
-package common
-
-import (
- "github.com/gin-gonic/gin"
-)
-
-// APIError returns an uniform json formatted error
-func APIError(c *gin.Context, err string) {
- c.JSON(500, gin.H{
- "status": "error",
- "error": err,
- })
-}