Skip to content

throw an error for wrong plugin interfaces #5112

@Eomm

Description

@Eomm

I think once a week I see this error (callback style mixed with async):

app.register(async function plugin (app, opts, next) {
  next()
})

I propose to trigger an error when a plugin function has 3 parameters and is an async function.

WDYT? Minor or v5?

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