mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-25 18:51:39 +00:00
.circleci
.github
DOCKER
benchmarks
blockchain
cmd
config
consensus
docs
evidence
libs
lite
client
errors
files
proxy
block.go
certifier.go
errors.go
errors_test.go
proxy.go
query.go
query_test.go
validate_test.go
wrapper.go
commit.go
doc.go
dynamic_certifier.go
dynamic_certifier_test.go
helpers.go
inquiring_certifier.go
inquiring_certifier_test.go
memprovider.go
performance_test.go
provider.go
provider_test.go
static_certifier.go
static_certifier_test.go
mempool
networks
node
p2p
proxy
rpc
scripts
state
test
types
version
.editorconfig
.gitignore
CHANGELOG.md
CODE_OF_CONDUCT.md
CONTRIBUTING.md
Gopkg.lock
Gopkg.toml
LICENSE
Makefile
README.md
ROADMAP.md
SECURITY.md
Vagrantfile
appveyor.yml
codecov.yml
docker-compose.yml
23 lines
432 B
Go
23 lines
432 B
Go
![]() |
package proxy
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
|
||
|
"github.com/pkg/errors"
|
||
|
)
|
||
|
|
||
|
//--------------------------------------------
|
||
|
|
||
|
var errNoData = fmt.Errorf("No data returned for query")
|
||
|
|
||
|
// IsNoDataErr checks whether an error is due to a query returning empty data
|
||
|
func IsNoDataErr(err error) bool {
|
||
|
return errors.Cause(err) == errNoData
|
||
|
}
|
||
|
|
||
|
func ErrNoData() error {
|
||
|
return errors.WithStack(errNoData)
|
||
|
}
|
||
|
|
||
|
//--------------------------------------------
|