rawhat / mist

gleam HTTP server. because it glistens on a web
Apache License 2.0
260 stars 11 forks source link

Fix pattern matching mistake in file_open #19

Closed avdgaag closed 1 year ago

avdgaag commented 1 year ago

It would appear the mist_ffi.file_open would always return an unknown_file_error since it tries to match the success case on {ok, fd} rather than {ok, Fd}. With this fix, things seem to work smoothly.

rawhat commented 1 year ago

🤦‍♂️ thank you!