added visualisation
This commit is contained in:
@@ -77,15 +77,5 @@ func getPatternHandler(pattern string) http.HandlerFunc {
|
||||
}
|
||||
}
|
||||
|
||||
func sendInternalError(err error, context RequestContext) {
|
||||
errorMessage := "Internal Server Error!"
|
||||
if DEBUG {
|
||||
errorMessage += fmt.Sprintf( " Happened during %s request for pattern '%s': %s",
|
||||
context.MethodType,
|
||||
context.Pattern,
|
||||
err.Error())
|
||||
}
|
||||
fmt.Println(errorMessage)
|
||||
http.Error(context.ResponseWriter, errorMessage, 500)
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user