Skip to content

Commit

Permalink
create warning function
Browse files Browse the repository at this point in the history
  • Loading branch information
alexg9010 committed Jul 23, 2024
1 parent 21d5978 commit b3ff021
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/func_defs.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ def bail(msg):
print(msg, file=sys.stderr)
exit(1)


# print a warning
def warn(msg):
"""Print the warning message to stderr."""
print(f"WARNING: {msg}", file=sys.stderr)

def TrueOrFalse(value):
value = repr(value)
if value:
Expand Down

0 comments on commit b3ff021

Please sign in to comment.