Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error #44

Merged
merged 2 commits into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions frida/bus.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ func (b *Bus) IsDetached() bool {
func (b *Bus) Attach() error {
var err *C.GError
C.frida_bus_attach_sync(b.bus, nil, &err)
if err != nil {
return &FError{err}
}
return nil
return handleGError(err)
}

// Post send(post) msg to the device.
Expand Down
12 changes: 2 additions & 10 deletions frida/comp.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,7 @@ func (c *Compiler) Build(entrypoint string) (string, error) {

var err *C.GError
ret := C.frida_compiler_build_sync(c.cc, entrypointC, nil, nil, &err)
if err != nil {
return "", &FError{err}
}

return C.GoString(ret), nil
return C.GoString(ret), handleGError(err)
}

// Watch watches for changes at the entrypoint and sends the "output" signal.
Expand All @@ -45,11 +41,7 @@ func (c *Compiler) Watch(entrypoint string) error {

var err *C.GError
C.frida_compiler_watch_sync(c.cc, entrypointC, nil, nil, &err)
if err != nil {
return &FError{err}
}

return nil
return handleGError(err)
}

// Clean will clean resources held by the compiler.
Expand Down
Loading
Loading