mirror of
https://github.com/grafana/grafana.git
synced 2024-11-25 10:20:29 -06:00
7e9d94cfda
chore: extract server lock Error so it can be used with error.As
10 lines
200 B
Go
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
|
|
}
|