Skip to content
This repository has been archived by the owner on Jan 28, 2021. It is now read-only.

Commit

Permalink
Update functionregistry.go (#786)
Browse files Browse the repository at this point in the history
Update functionregistry.go
  • Loading branch information
ajnavarro authored Jul 8, 2019
2 parents b61703a + f5609f1 commit d9c45ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sql/functionregistry.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ import (
)

// ErrFunctionAlreadyRegistered is thrown when a function is already registered
var ErrFunctionAlreadyRegistered = errors.NewKind("A function: '%s' is already registered.")
var ErrFunctionAlreadyRegistered = errors.NewKind("function '%s' is already registered")

// ErrFunctionNotFound is thrown when a function is not found
var ErrFunctionNotFound = errors.NewKind("A function: '%s' not found.")
var ErrFunctionNotFound = errors.NewKind("function: '%s' not found")

// ErrInvalidArgumentNumber is returned when the number of arguments to call a
// function is different from the function arity.
var ErrInvalidArgumentNumber = errors.NewKind("A function: '%s' expected %v arguments, %v received.")
var ErrInvalidArgumentNumber = errors.NewKind("function '%s' expected %v arguments, %v received")

// Function is a function defined by the user that can be applied in a SQL query.
type Function interface {
Expand Down

0 comments on commit d9c45ad

Please sign in to comment.