Properly signal an error