Provide better sethostname error message

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
Merge pull request #268 from crosbymichael/sethostname

Provide better sethostname error message