swconfig: improve usability when switch device incorrect