Better error handling

If we couldn't get credentials, raise an exception in the library and
then, in our handling code, pass that through to Alfred.