Fix minor bugs

This commit is contained in:
problematicconsumer
2023-09-22 23:25:38 +03:30
parent b8fe76515c
commit 75e342b6ba
4 changed files with 9 additions and 8 deletions

View File

@@ -30,8 +30,8 @@ func setup(baseDir *C.char, workingDir *C.char, tempDir *C.char, statusPort C.lo
}
//export parse
func parse(path *C.char) *C.char {
err := shared.ParseConfig(C.GoString(path))
func parse(path *C.char, tempPath *C.char, debug bool) *C.char {
err := shared.ParseConfig(C.GoString(path), C.GoString(tempPath), debug)
if err != nil {
return C.CString(err.Error())
}

View File

@@ -29,5 +29,5 @@ func stopAndAlert(alert string, err error) error {
msg, _ := json.Marshal(StatusMessage{Status: status, Alert: &alert, Message: &message})
bridge.SendStringToPort(statusPropagationPort, string(msg))
return err
return nil
}