|
|
@ -75,11 +75,10 @@ func queryHandler() http.HandlerFunc { |
|
|
|
handler := handler.GraphQL( |
|
|
|
graph2.New(), |
|
|
|
handler.RecoverFunc(func(ctx context.Context, err interface{}) error { |
|
|
|
// send this panic somewhere
|
|
|
|
log.Println(err) |
|
|
|
log.Println(string(debug.Stack())) |
|
|
|
|
|
|
|
return fmt.Errorf("shit") |
|
|
|
return fmt.Errorf("The server failed to serve your request due to an internal error, it has been logged") |
|
|
|
}), |
|
|
|
) |
|
|
|
|
|
|
|