dstddb icon indicating copy to clipboard operation
dstddb copied to clipboard

Need more detail exception text during sqllite creation

Open bubnenkoff opened this issue 8 years ago • 1 comments

If to try to create sqllite on not exist path like: try{ createDatabase("file:///C://code1//sqlLiteDBFullName.db").query("CREATE TABLE IF NOT EXISTS ddbct1 (ts text)"); } catch(Exception e) { writeln(e.msg); }

We will get error:

sqlite opening file: C://code1//sqlLiteDBFullName.db error: rc: 1461C78D29 2016-04-06T13:36:33.888:C:\Users\bubenkov_di\AppData\Roaming\dub\packages\dstddb -0.0.3\dstddb\src\std\database\sqlite\database.d:throw_error:429 prepare:unable to open database file sqlite error: prepare:

It's better to throw more human friendly exception.

bubnenkoff avatar Apr 06 '16 10:04 bubnenkoff

Agree. Improvements are coming.

cruisercoder avatar Apr 20 '16 04:04 cruisercoder