Files
tesseract/internal/workspace/errors.go

20 lines
352 B
Go
Raw Normal View History

2024-12-02 19:12:26 +00:00
package workspace
import "strings"
2024-12-02 19:12:26 +00:00
type errWorkspaceExists struct {
message string
}
type errPortMappingConflicts struct {
conflicts []string
}
2024-12-02 19:12:26 +00:00
func (err *errWorkspaceExists) Error() string {
return err.message
}
func (err *errPortMappingConflicts) Error() string {
return "Subdomain(s) already in use: " + strings.Join(err.conflicts, ", ")
}