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