httperrors: 修正InternalServerError调用

This commit is contained in:
Yousong Zhou
2018-11-30 03:03:46 +00:00
parent 4c64714118
commit af3054ded3
+1 -2
View File
@@ -1,7 +1,6 @@
package httperrors
import (
"fmt"
"net/http"
"yunion.io/x/jsonutils"
@@ -31,7 +30,7 @@ func GeneralServerError(w http.ResponseWriter, e error) {
if ok {
JsonClientError(w, je)
} else {
InternalServerError(w, fmt.Sprintf("%s", e))
InternalServerError(w, "%s", e)
}
}