Better error on bad config

Issue #67