Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

panic() in a web serving route (e.g. signupPage here) is bad practice - an error will bring down your web server. Panics should be reserved for errors that invalidate your system, e.g. missing view assets or db connection on system startup.

Much better to http.Redirect/5xx.



Fixed.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: