simulate an error