bjeanes / ghost

Create, list, delete, and modify /etc/hosts entries with ease...
MIT License
732 stars 44 forks source link

Pass dscl create errors up to the ghost user #32

Closed turadg closed 12 years ago

turadg commented 12 years ago

Currently when the create command fails, the add() function simply returns nil and the user never sees the error. They just get a confusing undefined method "name" error exception as in issue #28.

This patch raises an error with the dscl output as its message.

travisbot commented 12 years ago

This pull request passes (merged ac283bca into f37af28a).