Fix bad erorr check in nova lib