mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-06 07:57:27 +08:00
fix: 忽略uninstall错误
This commit is contained in:
+2
-2
@@ -3,6 +3,7 @@ package server
|
|||||||
import (
|
import (
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
"github.com/httprunner/httprunner/v5/pkg/uixt"
|
"github.com/httprunner/httprunner/v5/pkg/uixt"
|
||||||
|
"github.com/rs/zerolog/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (r *Router) foregroundAppHandler(c *gin.Context) {
|
func (r *Router) foregroundAppHandler(c *gin.Context) {
|
||||||
@@ -114,8 +115,7 @@ func (r *Router) uninstallAppHandler(c *gin.Context) {
|
|||||||
}
|
}
|
||||||
err = driver.GetDevice().Uninstall(appUninstallReq.PackageName)
|
err = driver.GetDevice().Uninstall(appUninstallReq.PackageName)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
RenderError(c, err)
|
log.Err(err).Msg("failed to uninstall app")
|
||||||
return
|
|
||||||
}
|
}
|
||||||
RenderSuccess(c, true)
|
RenderSuccess(c, true)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user