summaryrefslogtreecommitdiff
path: root/pkg/backend/actions.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/backend/actions.go')
-rw-r--r--pkg/backend/actions.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/backend/actions.go b/pkg/backend/actions.go
index 725a550..e45b026 100644
--- a/pkg/backend/actions.go
+++ b/pkg/backend/actions.go
@@ -2,14 +2,14 @@ package backend
import (
"log"
- "os"
)
func startVPN() {
+ setError("")
err := ctx.bm.StartVPN(ctx.Provider)
if err != nil {
- log.Println(err)
- os.Exit(1)
+ log.Println("ERROR: ", err)
+ setError(err.Error())
}
}