Resolved error with hostname objects and displayed additional error mess...

...age. Fixes #133