mirror of
https://github.com/juanfont/headscale.git
synced 2026-10-27 00:36:49 +09:00
exported API errors
This commit is contained in:
1 parent
f9c4d577e2
commit
911e6ba6de
10 files changed
+57
-57
No files matched your search
@@ -7,7 +7,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
errRouteIsNotAvailable = Error("route is not available")
|
||||
ErrRouteIsNotAvailable = Error("route is not available")
|
||||
)
|
||||
|
||||
// Deprecated: use machine function instead
|
||||
@@ -106,7 +106,7 @@ func (h *Headscale) EnableNodeRoute(
|
||||
}
|
||||
|
||||
if !available {
|
||||
return errRouteIsNotAvailable
|
||||
return ErrRouteIsNotAvailable
|
||||
}
|
||||
|
||||
machine.EnabledRoutes = enabledRoutes
|
||||
|
||||
Reference in new issue
Block a user