MCPcopy Create free account
hub / github.com/Scalingo/cli / Report

Method Report

cmd/error.go:42–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40}
41
42func (r *ReportError) Report() {
43 fields := []*rollbar.Field{{
44 Name: "custom",
45 Data: r,
46 }}
47 if r.User != nil {
48 fields = append(fields, &rollbar.Field{
49 Name: "person",
50 Data: map[string]string{
51 "id": r.User.ID,
52 "username": r.User.Username,
53 "email": r.User.Email,
54 },
55 })
56 }
57}
58
59func errorQuitWithHelpMessage(ctx context.Context, err error, c *cli.Command, command string) {
60 displayError(ctx, err)

Callers 1

displayErrorFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected