feat: handle port forward subdomain conflict

This commit is contained in:
2024-12-04 00:10:25 +00:00
parent ee857cbbf9
commit 4c41d4ce07
8 changed files with 81 additions and 7 deletions

View File

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