Skip to content

[docs] syntax errors in "Error and panic handling" #479

Description

@brasic

I noticed that the code examples at https://riverqueue.com/docs/error-handling include some syntax errors, possibly from a past find-and-replace operation. The job param is listed in three places as being type *river.rivertype.JobRow which is not legal syntax.

func (*CustomErrorHandler) HandleError(ctx context.Context, job *river.rivertype.JobRow, err error) *river.ErrorHandlerResult {
    fmt.Printf("Job errored with: %s\n", err)
    return nil
}
 ./prog.go:6:81: syntax error: unexpected . in parameter list; possibly missing comma or )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions