Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (16 sloc) 384 Bytes
package proxy
import (
type errNoData struct{}
func (e errNoData) Error() string {
return "No data returned for query"
// IsErrNoData checks whether an error is due to a query returning empty data
func IsErrNoData(err error) bool {
_, ok := errors.Cause(err).(errNoData)
return ok
func ErrNoData() error {
return errors.Wrap(errNoData{}, "")
You can’t perform that action at this time.