mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 21:54:10 -08:00
Export the error field in ErrStorage, so we can 'throw' it outside the package. (#4954)
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
This commit is contained in:
parent
7fc501d983
commit
e1d9bf77f1
|
@ -74,7 +74,7 @@ type (
|
||||||
ErrTooManySamples string
|
ErrTooManySamples string
|
||||||
// ErrStorage is returned if an error was encountered in the storage layer
|
// ErrStorage is returned if an error was encountered in the storage layer
|
||||||
// during query handling.
|
// during query handling.
|
||||||
ErrStorage struct{ error }
|
ErrStorage struct{ Err error }
|
||||||
)
|
)
|
||||||
|
|
||||||
func (e ErrQueryTimeout) Error() string {
|
func (e ErrQueryTimeout) Error() string {
|
||||||
|
@ -87,7 +87,7 @@ func (e ErrTooManySamples) Error() string {
|
||||||
return fmt.Sprintf("query processing would load too many samples into memory in %s", string(e))
|
return fmt.Sprintf("query processing would load too many samples into memory in %s", string(e))
|
||||||
}
|
}
|
||||||
func (e ErrStorage) Error() string {
|
func (e ErrStorage) Error() string {
|
||||||
return e.error.Error()
|
return e.Err.Error()
|
||||||
}
|
}
|
||||||
|
|
||||||
// A Query is derived from an a raw query string and can be run against an engine
|
// A Query is derived from an a raw query string and can be run against an engine
|
||||||
|
|
Loading…
Reference in a new issue