// Handle logging and sending back and error
Handle logging and sending back and error
// Handle logging and sending back and error
func HandleError(response http.ResponseWriter, err interface{}) {
	fmt.Println("Internal Error " + err.(error).Error())
	fmt.Println(string(debug.Stack()))
	response.Write([]byte("Server Error " + err.(error).Error()))
}
func HandleError ( response http . ResponseWriter , err interface { } ) { fmt . Println ( " " + err . ( error ) . Error ( ) ) fmt . Println ( string ( debug . Stack ( ) ) ) response . Write ( [ ] byte ( " " + err . ( error ) . Error ( ) ) ) }
Handle logging and sending back and error
Handle logging and sending back and error