Maybe we should throw an exception instead.