catch error in file chooser

This commit is contained in:
Robert Janetzko 2022-08-18 08:23:17 +00:00
parent 435d509b9d
commit 830ee9bdbc
3 changed files with 23 additions and 0 deletions

15
backend/.vscode/launch.json vendored Normal file
View 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"
}
]
}

View File

@ -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)
}

View File

@ -16,5 +16,9 @@
"jinliming2.vscode-go-template",
"golang.go"
]
},
"launch": {
"version": "0.2.0",
"configurations": []
}
}