fix(upload): error handling on http server
All checks were successful
build / Go-Build (push) Successful in 26s
All checks were successful
build / Go-Build (push) Successful in 26s
This commit is contained in:
@@ -23,7 +23,10 @@ func PrepareHTTP() {
|
|||||||
|
|
||||||
func Start() {
|
func Start() {
|
||||||
log.Println("Starting http server on :3000")
|
log.Println("Starting http server on :3000")
|
||||||
http.ListenAndServe(":3000", nil)
|
if err := http.ListenAndServe(":3000", nil); err != nil {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func registerAuthorized(path string, f func(w http.ResponseWriter, r *http.Request)) {
|
func registerAuthorized(path string, f func(w http.ResponseWriter, r *http.Request)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user