documentcloud / cloud-crowd

Parallel Processing for the Rest of Us
https://github.com/documentcloud/cloud-crowd/wiki
MIT License
851 stars 92 forks source link

Bare DBs don't get "please use load_schema" message #45

Closed adamhooper closed 10 years ago

adamhooper commented 10 years ago

The block of code at https://github.com/documentcloud/cloud-crowd/blob/ae12837ce5a63f4f47be3e52d3a1abf2b4f5797d/lib/cloud-crowd.rb#L115 will throw an exception on a fresh database (like the default SQLite one), because the database doesn't exist so the query fails.

That's unfortunate: had the query succeeded, then CloudCrowd would have printed the lovely error message that explains how to fix the error.

nathanstitt commented 10 years ago

Thanks for reporting Adam, that was pretty good - we were soooo close to doing the right thing :)