mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-08-29 03:51:54 +08:00
httperrors: 修正InternalServerError调用
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user