Better errors around missing API keys, fixes #2