hwaflib: handle impossible error