We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6dcdf7f commit b11edacCopy full SHA for b11edac
1 file changed
meshtastic/__main__.py
@@ -948,9 +948,14 @@ def common():
948
if args.ble:
949
client = BLEInterface(args.ble, debugOut=logfile, noProto=args.noproto)
950
elif args.host:
951
- client = meshtastic.tcp_interface.TCPInterface(
952
- args.host, debugOut=logfile, noProto=args.noproto
953
- )
+ try:
+ client = meshtastic.tcp_interface.TCPInterface(
+ args.host, debugOut=logfile, noProto=args.noproto
954
+ )
955
+ except Exception as ex:
956
+ meshtastic.util.our_exit(
957
+ f"Error connecting to {args.host}:{ex}", 1
958
959
else:
960
try:
961
client = meshtastic.serial_interface.SerialInterface(
0 commit comments