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.
Currently when the
create
command fails, theadd()
function simply returns nil and the user never sees the error. They just get a confusingundefined method "name" error
exception as in issue #28.This patch raises an error with the
dscl
output as its message.