summaryrefslogtreecommitdiff
path: root/cmd/cli
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2023-08-16 15:32:05 +0200
committerJeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com>2023-09-25 09:43:37 +0200
commit9316c4d826e813bcb26c520bfde4e4352ae9d67a (patch)
tree1846906f9a79c9d58a640c1a13c6c71ad825a3d5 /cmd/cli
parent15588a55a8c00fcfd9994eb87cff91c352a850d4 (diff)
Client + l18n: Make some errors internal only
Diffstat (limited to 'cmd/cli')
-rw-r--r--cmd/cli/main.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/cmd/cli/main.go b/cmd/cli/main.go
index 826d523..aba5e83 100644
--- a/cmd/cli/main.go
+++ b/cmd/cli/main.go
@@ -11,7 +11,6 @@ import (
"github.com/eduvpn/eduvpn-common/client"
"github.com/eduvpn/eduvpn-common/types/cookie"
srvtypes "github.com/eduvpn/eduvpn-common/types/server"
- "github.com/go-errors/errors"
"github.com/pkg/browser"
)
@@ -154,7 +153,7 @@ func getConfig(state *client.Client, url string, srvType srvtypes.Type) (*srvtyp
func printConfig(url string, srvType srvtypes.Type) {
var c *client.Client
c, err := client.New(
- "org.eduvpn.app.linux",
+ "org.letsconnect-vpn.app.linux",
"2.0.0-cli",
"configs",
func(old client.FSMStateID, new client.FSMStateID, data interface{}) bool {
@@ -173,10 +172,7 @@ func printConfig(url string, srvType srvtypes.Type) {
cfg, err := getConfig(c, url, srvType)
if err != nil {
- err1 := err.(*errors.Error)
- // Show the usage of tracebacks and causes
- fmt.Fprintf(os.Stderr, "Error getting config: %s\nCause:\n%s\nStack trace:\n%s\n\n'",
- err1.Error(), err1.Err, err1.ErrorStack())
+ fmt.Fprintf(os.Stderr, "failed getting a config: %v\n", err)
return
}