summaryrefslogtreecommitdiff
path: root/state.go
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-07-11 13:26:22 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-07-11 13:26:22 +0200
commit2565f5be6a2653edbec06ec36f8d5d8bff925da0 (patch)
treefd39d9ca95ecc1a7bc62967c47790643bfc7b9d1 /state.go
parente39b5e8386de46661a8c585c450636abeaac3cc1 (diff)
Exports/State: Return error traceback instead of normal error
Diffstat (limited to 'state.go')
-rw-r--r--state.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/state.go b/state.go
index 552a5ea..a175e2f 100644
--- a/state.go
+++ b/state.go
@@ -336,10 +336,10 @@ func (state *VPNState) SetDisconnected() error {
return nil
}
-func (state *VPNState) GetErrorTraceback(err error) string {
+func GetErrorTraceback(err error) string {
return types.GetErrorTraceback(err)
}
-func (state *VPNState) GetErrorCause(err error) error {
+func GetErrorCause(err error) error {
return types.GetErrorCause(err)
}