Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions testflows/_core/cli/arg/type.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def repeat(value):
pattern, count = fields
option = Repeat(count=count, pattern=pattern, until=until)
except Exception as e:
raise ArgumentTypeError(f"'{value}' is invalid")
raise ArgumentTypeError(f"'{value}' is invalid: {e}")
return option

def retry(value):
Expand All @@ -182,7 +182,7 @@ def retry(value):
backoff = 1
option = Retry(count=count, timeout=timeout, delay=delay, backoff=backoff, jitter=jitter, pattern=pattern)
except Exception as e:
raise ArgumentTypeError(f"'{value}' is invalid")
raise ArgumentTypeError(f"'{value}' is invalid: {e}")
return option

def tags_filter(value):
Expand All @@ -196,7 +196,7 @@ def tags_filter(value):
type = "suite"
option = (type, tuple(tags))
except Exception as e:
raise ArgumentTypeError(f"'{value}' is invalid")
raise ArgumentTypeError(f"'{value}' is invalid: {e}")
return option

def onoff(value):
Expand All @@ -217,4 +217,4 @@ def trace_level(value):
raise ArgumentTypeError(f"'{value}' is invalid")

trace_level.choices = ["debug", "info", "warning", "error", "critical"]
trace_level.metavar = str(set(trace_level.choices)).replace(" ","").replace("'","")
trace_level.metavar = str(set(trace_level.choices)).replace(" ","").replace("'","")