add meaningful error when no DB
Status: Beta
Brought to you by:
hardaker
When started with no initialized DB, the current failure mode is pretty useless.
% ./geoqo
DBD::SQLite2::st execute failed: no such table: parameters(1) at dbdimp.c line 412 at GeoDB/DB.pm line 286.
DBD::SQLite2::db do failed: no such table: waypoints(1) at dbdimp.c line 412 at GeoDB/DB.pm line 321.
DBD::SQLite2::db do failed: no such table: waypoints(1) at dbdimp.c line 412 at GeoDB/DB.pm line 321.
Logged In: YES
user_id=76242
Originator: NO
it now initializes the default db or prints a warning if you're using a non-default DB.
(not true for non-sqlite DBs still).