changing how error is done in CLI