Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

ENV['HOME'] isn't everywhere #2

Open
ripienaar opened this issue Feb 16, 2010 · 2 comments
Open

ENV['HOME'] isn't everywhere #2

ripienaar opened this issue Feb 16, 2010 · 2 comments

Comments

@ripienaar
Copy link

Not all shells and all environments sets ENV[HOME], line 90 of options.rb has:

      config_file = File.open(File.join(ENV['HOME'], '.clickatell'))

which raises an exception and dies without sending sms if HOME isn't set

@ripienaar
Copy link
Author

btw the error is:

`join': can't convert nil into String (TypeError)

you could just catch that as well in your existing rescue block

@lukeredpath
Copy link
Owner

Thanks for reporting; patches are welcome. :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants