Skip to content

Commit

Permalink
better error message in command
Browse files Browse the repository at this point in the history
  • Loading branch information
jenshnielsen committed Mar 4, 2024
1 parent c306eac commit 9c14b23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qcodes/parameters/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def __init__(

else:
raise TypeError(
f"cmd must be a string or function with arg_count={arg_count} args"
f"cmd must be a string or function with arg_count={arg_count} args not {cmd} of type {type(cmd)}"
)

# Wrappers that may or may not be used in constructing call
Expand Down

0 comments on commit 9c14b23

Please sign in to comment.