File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -1245,6 +1245,19 @@ def common():
12451245 noProto = args .noproto ,
12461246 noNodes = args .no_nodes ,
12471247 )
1248+ except FileNotFoundError :
1249+ # Handle the case where the serial device is not found
1250+ message = (
1251+ f"File Not Found Error:\n "
1252+ )
1253+ message += f" The serial device at '{ args .port } ' was not found.\n "
1254+ message += " Please check the following:\n "
1255+ message += " 1. Is the device connected properly?\n "
1256+ message += " 2. Is the correct serial port specified?\n "
1257+ message += " 3. Are the necessary drivers installed?\n "
1258+ message += " 4. Are you using a **power-only USB cable**? A power-only cable cannot transmit data.\n "
1259+ message += " Ensure you are using a **data-capable USB cable**.\n "
1260+ meshtastic .util .our_exit (message , 1 )
12481261 except PermissionError as ex :
12491262 username = os .getlogin ()
12501263 message = "Permission Error:\n "
You can’t perform that action at this time.
0 commit comments