swconfig: improve usability when switch device incorrect
http://patchwork.openwrt.org/patch/4701/ Signed-off-by: Andreas Mohr <andim2@users.sf.net> SVN-Revision: 39229
This commit is contained in:
parent
ace5076a35
commit
4810de8e4b
1 changed files with 1 additions and 1 deletions
|
@ -270,7 +270,7 @@ int main(int argc, char **argv)
|
||||||
|
|
||||||
dev = swlib_connect(cdev);
|
dev = swlib_connect(cdev);
|
||||||
if (!dev) {
|
if (!dev) {
|
||||||
fprintf(stderr, "Failed to connect to the switch\n");
|
fprintf(stderr, "Failed to connect to the switch. Use the \"list\" command to see which switches are available.\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue