summaryrefslogtreecommitdiffstats
path: root/lib/common/error.go
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2017-06-26 18:53:06 +0200
committerSebastien Douheret <sebastien.douheret@iot.bzh>2017-06-26 18:53:06 +0200
commit36e2400d1c0249e81f910e48a967e0202d5a8d46 (patch)
tree73b3f2cced8b1f9eadb8db5e247a79b89aa9df00 /lib/common/error.go
parent59b0682f87803e69a58e58ea0f3c50f606745cae (diff)
Use xds-common go library.
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,
- })
-}