Returned errors don't show SQLite error code
CodingDoug opened this issue · comments
The other libsql drivers show both the SQLite error code along with the message. This helps developers better understand and diagnose problems. For example, the TypeScript and Python SDKs yield errors that look like this:
SQLITE_CONSTRAINT: SQLite error: cannot store TEXT value in INT column foo.i
Whereas this SDK shows:
SQLite error: cannot store TEXT value in INT column foo.i
Ideally the error object is a struct that provides the code and message separately, but I'm not sure if that's possible as sql/database driver.