summaryrefslogtreecommitdiff
path: root/pkg/backend/api.go
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2020-08-20 14:54:31 +0200
committerkali kaneko (leap communications) <kali@leap.se>2020-08-20 20:27:49 +0200
commit339a30fd1917011d8ad8a3900509f3a8880d569d (patch)
treea6e519b135c43e09cdbbefc5103783c56a3c3cf0 /pkg/backend/api.go
parent30587fb27b73fdb3f0aab1a78844edcaaae1c3bb (diff)
[feat] reset error
Diffstat (limited to 'pkg/backend/api.go')
-rw-r--r--pkg/backend/api.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkg/backend/api.go b/pkg/backend/api.go
index 7c049fc..7aa5527 100644
--- a/pkg/backend/api.go
+++ b/pkg/backend/api.go
@@ -85,6 +85,11 @@ func RefreshContext() *C.char {
return C.CString(string(c))
}
+func ResetError(errname string) {
+ log.Println("DEBUG: resetting error", errname)
+ resetErrors(errname)
+}
+
func InstallHelpers() {
pickle.InstallHelpers()
}
@@ -105,7 +110,7 @@ func EnableWebAPI(port string) {
/* these two are a bit redundant since we already add them to ctx. however, we
want to have them available before everything else, to be able to parse cli
arguments. In the long run, we probably want to move all vendoring to qt, so
- this probably should not live in the backend. */
+ this probably should not live in the backend, see #326*/
func GetVersion() *C.char {
return C.CString(version.VERSION)