catch error in file chooser
This commit is contained in:
parent
435d509b9d
commit
830ee9bdbc
|
@ -0,0 +1,15 @@
|
||||||
|
{
|
||||||
|
// Use IntelliSense to learn about possible attributes.
|
||||||
|
// Hover to view descriptions of existing attributes.
|
||||||
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"name": "Launch Package",
|
||||||
|
"type": "go",
|
||||||
|
"request": "launch",
|
||||||
|
"mode": "auto",
|
||||||
|
"program": "main.go"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -107,6 +107,10 @@ func (h loadHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if err != nil {
|
||||||
|
httpError(w, err)
|
||||||
|
return
|
||||||
|
}
|
||||||
http.Redirect(w, r, h.server.context.config.SubUri+"/load", http.StatusSeeOther)
|
http.Redirect(w, r, h.server.context.config.SubUri+"/load", http.StatusSeeOther)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,5 +16,9 @@
|
||||||
"jinliming2.vscode-go-template",
|
"jinliming2.vscode-go-template",
|
||||||
"golang.go"
|
"golang.go"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"launch": {
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": []
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue