Closed liamdiprose closed 1 year ago
I get this error every so often:
21:28:43.249 [error] Exqlite.Connection (#PID<0.2627.0>) failed to connect: ** (Exqlite.Error) got :database_open_failed while retrieving Exception.message/1 for %Exqlite.Error{message: :database_open_failed, statement: nil} (expected a string)
The NIF returns error reason's as atoms, but Exqlite.Error expects a String. This PR fixes this issue by wrapping all reason's with to_string/1.
reason
Exqlite.Error
to_string/1
Please don't hesitate to take a different approach if you feel another one is more appropriate :heart:
Released under v0.13.6
v0.13.6
I get this error every so often:
The NIF returns error
reason
's as atoms, butExqlite.Error
expects a String. This PR fixes this issue by wrapping allreason
's withto_string/1
.Please don't hesitate to take a different approach if you feel another one is more appropriate :heart: