Pass dscl create errors up to the ghost user #32

Merged
merged 1 commit into from Aug 29, 2012

Projects

None yet

3 participants

@turadg
Contributor
turadg commented Aug 28, 2012

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.

@turadg turadg Pass dscl create errors up to the ghost user
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.
ac283bc

This pull request passes (merged ac283bc into f37af28).

@bjeanes bjeanes merged commit 1655cc8 into bjeanes:master Aug 29, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment