If from CLI, call `self.error()`.