Set hr to error if one occures

Authored by vonreth on May 31 2019, 1:40 PM.