Skip to content

try to warn about ffi startup failures - #440

Open
jcupitt wants to merge 2 commits into
masterfrom
ffi-startup-warning
Open

try to warn about ffi startup failures#440
jcupitt wants to merge 2 commits into
masterfrom
ffi-startup-warning

Conversation

@jcupitt

Copy link
Copy Markdown
Member

FFI can fail with RuntimeError if write-execute memory protection is on. Try to warn about this.

see #439

thanks @paulschreiber

FFI can fail with RuntimeError if write-execute memory protection is on.
Try to warn about this.
see #439
thanks @paulschreiber
@jcupitt

Copy link
Copy Markdown
MemberAuthor

I just used STDERR.puts for the error, since it occurs before the logger is built. Hopefully that'll be visible.

@kleisauke

Copy link
Copy Markdown
Member

To appease standardrb, I think it should use warn instead.
https://rubystyle.guide/#warn

Sign up for freeto 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.

2 participants

@jcupitt@kleisauke