File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ func handleCosMount() gin.HandlerFunc {
127
127
err = utils .FuseMount (request .Path , request .Mounter , args )
128
128
if err != nil {
129
129
logger .Error ("mount failed: " , zap .Error (err ))
130
- c .JSON (http .StatusBadRequest , gin.H {"error" : fmt .Sprintf ("mount failed: %v" , err )})
130
+ c .JSON (http .StatusInternalServerError , gin.H {"error" : fmt .Sprintf ("mount failed: %v" , err )})
131
131
return
132
132
}
133
133
@@ -154,7 +154,7 @@ func handleCosUnmount() gin.HandlerFunc {
154
154
err := utils .FuseUnmount (request .Path )
155
155
if err != nil {
156
156
logger .Error ("unmount failed: " , zap .Error (err ))
157
- c .JSON (http .StatusBadRequest , gin.H {"error" : fmt .Sprintf ("unmount failed :%v" , err )})
157
+ c .JSON (http .StatusInternalServerError , gin.H {"error" : fmt .Sprintf ("unmount failed :%v" , err )})
158
158
return
159
159
}
160
160
You can’t perform that action at this time.
0 commit comments