mirror of
https://github.com/cloudnative-pg/plugin-barman-cloud.git
synced 2026-01-11 13:23:09 +01:00
Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com> Signed-off-by: Francesco Canovai <francesco.canovai@enterprisedb.com> Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com> Co-authored-by: Francesco Canovai <francesco.canovai@enterprisedb.com> Co-authored-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
17 lines
491 B
Go
17 lines
491 B
Go
package common
|
|
|
|
// walNotFoundError is raised when a WAL file has not been found in the object store
|
|
type walNotFoundError struct{}
|
|
|
|
func newWALNotFoundError() *walNotFoundError { return &walNotFoundError{} }
|
|
|
|
// ShouldPrintStackTrace tells whether the sidecar log stream should contain the stack trace
|
|
func (e walNotFoundError) ShouldPrintStackTrace() bool {
|
|
return false
|
|
}
|
|
|
|
// Error implements the error interface
|
|
func (e walNotFoundError) Error() string {
|
|
return "WAL file not found"
|
|
}
|