Goofy stuff to get translation happy

including some silly checking of error return value, which works but
feels... silly.  And wrong.