Added error reporting also for hunpos