catch error in file chooser
This commit is contained in:
parent
435d509b9d
commit
830ee9bdbc
3 changed files with 23 additions and 0 deletions
15
backend/.vscode/launch.json
vendored
Normal file
15
backend/.vscode/launch.json
vendored
Normal file
|
@ -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
|
||||
}
|
||||
}
|
||||
if err != nil {
|
||||
httpError(w, err)
|
||||
return
|
||||
}
|
||||
http.Redirect(w, r, h.server.context.config.SubUri+"/load", http.StatusSeeOther)
|
||||
}
|
||||
|
||||
|
|
|
@ -16,5 +16,9 @@
|
|||
"jinliming2.vscode-go-template",
|
||||
"golang.go"
|
||||
]
|
||||
},
|
||||
"launch": {
|
||||
"version": "0.2.0",
|
||||
"configurations": []
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue