Skip to content

Conversation

dominicletz
Copy link
Contributor

No description provided.

Comment on lines +324 to +326
const char* msg = sqlite3_errmsg(db);
int code = sqlite3_system_errno(db);
snprintf(error_msg, sizeof(error_msg), "%s (errno: %d)", msg, code);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me think about this a little bit more. This changes the method signature from {:error, atom()} to {:error, atom() | String.t()}. I think maybe the better solution would be to do something like {:error, {:database_open_failed, code(), String.t()}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants