We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b05c7d commit fcaa317Copy full SHA for fcaa317
killbrowser.go
@@ -22,20 +22,20 @@ func killBrowserHandler(c *gin.Context) {
22
log.Println(command)
23
24
if err != nil {
25
- c.JSON(http.StatusInternalServerError, err)
+ c.JSON(http.StatusInternalServerError, err.Error())
26
}
27
28
if data.Action == "kill" || data.Action == "restart" {
29
// _, err := killBrowser(data.Process)
30
// if err != nil {
31
- // c.JSON(http.StatusInternalServerError, err)
+ // c.JSON(http.StatusInternalServerError, err.Error())
32
// }
33
34
35
if data.Action == "restart" {
36
_, err := startBrowser(command, data.URL)
37
38
39
40
41
0 commit comments