diff --git a/http/iris.go b/http/iris.go index 259d0b2..aa92d79 100644 --- a/http/iris.go +++ b/http/iris.go @@ -19,7 +19,7 @@ func (hc IrisHttpContext) SendJson(response interface{}) { func (hc IrisHttpContext) ServerErr(err error) { hc.context.HandleErr(err) - hc.JSON(iris.StatusInternalServerError, iris.Map{"error": err}) + hc.JSON(iris.StatusInternalServerError, iris.Map{"error": err.Error()}) } func (hc IrisHttpContext) GetSegment(index string) string {