##// END OF EJS Templates
improve error message
Matthias Bussonnier -
Show More
@@ -571,7 +571,9 b' class Pdb(OldPdb):'
571 return
571 return
572 type_value = args.strip().split(" ")
572 type_value = args.strip().split(" ")
573 if len(type_value) != 2:
573 if len(type_value) != 2:
574 print("Usage: skip_predicates <type> <value>")
574 print(
575 f"Usage: skip_predicates <type> <value>, with <type> one of {set(self._predicates.keys())}"
576 )
575 return
577 return
576
578
577 type_, value = type_value
579 type_, value = type_value
@@ -580,7 +582,7 b' class Pdb(OldPdb):'
580 return
582 return
581 if value.lower() not in ("true", "yes", "1", "no", "false", "0"):
583 if value.lower() not in ("true", "yes", "1", "no", "false", "0"):
582 print(
584 print(
583 f"{repr(value)} is invalid - use one of ('true', 'yes', '1', 'no', 'false', '0')"
585 f"{value!r} is invalid - use one of ('true', 'yes', '1', 'no', 'false', '0')"
584 )
586 )
585 return
587 return
586
588
General Comments 0
You need to be logged in to leave comments. Login now