aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/services/errors.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-05-20 14:18:01 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-05-20 14:18:01 +0200
commitcdb8c53cdea8d8ac6e6f2112e4a5e844bffd01a4 (patch)
treedb88ec568dfc508da863e67164de909448c66742 /services/errors.go
parentservice: move route monitor and account for changing index (diff)
downloadwireguard-windows-cdb8c53cdea8d8ac6e6f2112e4a5e844bffd01a4.tar.xz
wireguard-windows-cdb8c53cdea8d8ac6e6f2112e4a5e844bffd01a4.zip
service: split into tunnel and manager
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r--services/errors.go (renamed from service/errors.go)6
1 files changed, 3 insertions, 3 deletions
diff --git a/service/errors.go b/services/errors.go
index a2cb7bc5..c9b2c049 100644
--- a/service/errors.go
+++ b/services/errors.go
@@ -3,7 +3,7 @@
* Copyright (C) 2017-2019 WireGuard LLC. All Rights Reserved.
*/
-package service
+package services
import (
"fmt"
@@ -75,7 +75,7 @@ func (e Error) Error() string {
}
}
-func determineErrorCode(err error, serviceError Error) (bool, uint32) {
+func DetermineErrorCode(err error, serviceError Error) (bool, uint32) {
if syserr, ok := err.(syscall.Errno); ok {
return false, uint32(syserr)
} else if serviceError != ErrorSuccess {
@@ -85,7 +85,7 @@ func determineErrorCode(err error, serviceError Error) (bool, uint32) {
}
}
-func combineErrors(err error, serviceError Error) error {
+func CombineErrors(err error, serviceError Error) error {
if serviceError != ErrorSuccess {
if err != nil {
return fmt.Errorf("%v: %v", serviceError, err)