brianhempel/facepals.fun

Fix server crashes

brianhempel opened this issue · 0 comments

Need to catch some Unix_errors.

server: [INFO] Received POST "/rooms/half-covered-indigo-stem/peers/3f9be89a-89c146e5-24b277e0-e6740126/remove"
server: [INFO] Received GET "/rooms/half-covered-indigo-stem"
server: [INFO] Responded with HTTP code 200 in 105us
Fatal error: exception (Unix.Unix_error "No such file or directory" opendir
  rooms/half-covered-indigo-stem/peers/3f9be89a-89c146e5-24b277e0-e6740126)
Raised at Stdlib__string.index_rec in file "string.ml", line 115, characters 19-34
Called from Sexplib0__Sexp.Printing.index_of_newline in file "src/sexp.ml", line 113, characters 13-47
make: *** [Makefile:16: run] Error 2