Skip to content

Commit

Permalink
chore: show kcl service native lin install error
Browse files Browse the repository at this point in the history
Signed-off-by: peefy <[email protected]>
  • Loading branch information
Peefy committed Oct 14, 2024
1 parent 2e7b852 commit c8a16b5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion go/native/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ type NativeServiceClient struct {

func initClient(pluginAgent uint64) {
libInit.Do(func() {
lib, _ = loadServiceNativeLib()
lib, err := loadServiceNativeLib()
if err != nil {
panic(err)
}
purego.RegisterLibFunc(&serviceNew, lib, "kclvm_service_new")
purego.RegisterLibFunc(&serviceDelete, lib, "kclvm_service_delete")
purego.RegisterLibFunc(&serviceCall, lib, "kclvm_service_call_with_length")
Expand Down

0 comments on commit c8a16b5

Please sign in to comment.