FFI's store_open should return an ExternResult, instead of crashing on error #256

Open
opened 2020-08-06 16:57:26 +00:00 by gburd · 0 comments
gburd commented 2020-08-06 16:57:26 +00:00 (Migrated from github.com)

Crashing on open errors is obviously bad, and we should provide a nicer experience. Besides the myriad of "failed to open db" scenarios, the most common error while working with mentat SDK might be trying to open an invalid path. Crashing obscures the actual problem behind an opaque stacktrace.

See #710 as it would likely be a requirement here.

Crashing on open errors is obviously bad, and we should provide a nicer experience. Besides the myriad of "failed to open db" scenarios, the most common error while working with mentat SDK might be trying to open an invalid path. Crashing obscures the actual problem behind an opaque stacktrace. See #710 as it would likely be a requirement here.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: greg/mentat#256
No description provided.