Lwt: Lwt_main.run throws on `exit(1)`

Created on 29 Dec 2019  路  1Comment  路  Source: ocsigen/lwt

The error it says is Failure "Nested calls to Lwt_main.run are not allowed", which seems like a weird result.

I know that maybe exit(1) is not the "lwt"-ish way but maybe this error should say something else?

context: I got it as an issue in fnm: https://github.com/Schniz/fnm/issues/181
I fixed it with returning a result, instead of exiting, which is probably a better way of doing it.

Most helpful comment

Thanks, that was a bug in Lwt_main. The linked commit should fix it. I'll release this next Monday, mainly because there was a release this weekend, and I think I should limit the rate a little :)

>All comments

Thanks, that was a bug in Lwt_main. The linked commit should fix it. I'll release this next Monday, mainly because there was a release this weekend, and I think I should limit the rate a little :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ljw1004 picture ljw1004  路  4Comments

aantron picture aantron  路  4Comments

brendanlong picture brendanlong  路  5Comments

aantron picture aantron  路  8Comments

foretspaisibles picture foretspaisibles  路  8Comments