8000 package-manager: Catch Efni errors too by oleavr · Pull Request #1293 · frida/frida-core · GitHub
[go: up one dir, main page]

Skip to content

package-manager: Catch Efni errors too - #1293

Merged
oleavr merged 2 commits into
mainfrom
package-manager-installed-probe
Nov 12, 2026
Merged

oleavr merged 2 commits into
mainfrom
package-manager-installed-probe

Conversation

@oleavr
@oleavr oleavr commented Nov 12, 2026
Copy link
Copy Markdown
Member

Since the Efni split, FS.read_all_bytes() throws Efni.Error, which the
already-installed probe's catch (Error e) let escape. Every install into a
fresh project failed with "Error opening file …/package.json: No such file or
directory" before downloading anything. Tarball extraction errors from Efni
also skipped the PROTOCOL wrapping.

Also drop the catch (Efni.Error e) clauses the split added around calls that
only throw Frida.Error, which valac reports as unreachable.

Catch the Efni.Error that FS throws for a missing package.json in the
already-installed probe, which otherwise fails every fresh install.
Wrap Efni errors from tarball extraction as well.
The calls they guard only throw Frida.Error.
@oleavr
oleavr merged commit d65ee99 into main Nov 12, 2026
22 of 72 checks passed
@oleavr
oleavr deleted the package-manager-installed-probe branch November 12, 2026 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0