Files
grafana/pkg/infra/serverlock/errors.go
Grot (@grafanabot) 311b4b9b6f [v9.3.x] Chore: Extract server lock error so it can be used with errors.As (#58906)
Chore: Extract server lock error so it can be used with errors.As (#58899)

chore: extract server lock Error so it can be used with error.As
(cherry picked from commit 7e9d94cfda)

Co-authored-by: Jo <joao.guerreiro@grafana.com>
2022-11-17 15:30:24 +01:00

10 lines
200 B
Go

package serverlock
type ServerLockExistsError struct {
actionName string
}
func (e *ServerLockExistsError) Error() string {
return "there is already a lock for this actionName: " + e.actionName
}