aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/services/errors.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-11-21 15:45:08 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2020-11-22 22:00:32 +0100
commit224336aa077020c35d3feb8a534f92c814b232e9 (patch)
treea6b366f7061ba69c31138b1961f30994b9dfc38e /services/errors.go
parentconf: allow administrators to add and remove configs easily (diff)
downloadwireguard-windows-224336aa077020c35d3feb8a534f92c814b232e9.tar.xz
wireguard-windows-224336aa077020c35d3feb8a534f92c814b232e9.zip
tunnel: enable {Pre,Post}{Up,Down} scripts gated behind admin knob
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'services/errors.go')
-rw-r--r--services/errors.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/services/errors.go b/services/errors.go
index 19bfebca..86820b9f 100644
--- a/services/errors.go
+++ b/services/errors.go
@@ -30,6 +30,7 @@ const (
ErrorTrackTunnels
ErrorEnumerateSessions
ErrorDropPrivileges
+ ErrorRunScript
ErrorWin32
)
@@ -65,6 +66,8 @@ func (e Error) Error() string {
return "Unable to enumerate current sessions"
case ErrorDropPrivileges:
return "Unable to drop privileges"
+ case ErrorRunScript:
+ return "An error occurred while running a configuration script command"
case ErrorWin32:
return "An internal Windows error has occurred"
default: