Skip to content

Improve Scan error message #33

@emicklei

Description

@emicklei

In query.go, function Scan, it has the statement

err = errors.New("Scan received wrong number of arguments")

It can be improved when it also states how many it got and expected, such as

"Scan received wrong number of arguments, got 5 but expected 4"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions