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
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package serverlock
|
||||
|
||||
type ServerLockExistsError struct {
|
||||
actionName string
|
||||
}
|
||||
|
||||
func (e *ServerLockExistsError) Error() string {
|
||||
return "there is already a lock for this actionName: " + e.actionName
|
||||
}
|
||||
Reference in New Issue
Block a user