Currently, when you try to send config to a switch with, for example:
<netmiko BaseConnection instance>.send_config_set(
config.splitlines(),
error_pattern=r"%.*",
)
if one of those lines of config is invalid and produces output on the switch like % Invalid input or Vlan ### is not configured, it would be really nice if netmiko were to raise an error like ConfigInvalidException("Invalid input detected at command: {cmd}, error message: {matched_error}")