Skip to content

Commit

Permalink
all error output goes to stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
sskeirik committed Dec 18, 2024
1 parent ec9c16d commit d0d2da6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pykwasm/src/pykwasm/call.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def run_method(w3, contract, sender, eth, method, params):
def main():
args = sys.argv[1:]
if len(args) < 1:
print(USAGE)
print(USAGE, file=sys.stderr)
sys.exit(1)
(node_url, abi, addr_lit_or_file, sender_pk_file, eth, method), params = args[:6], args[6:]
# get web3 instance
Expand Down
2 changes: 1 addition & 1 deletion pykwasm/src/pykwasm/deploy_contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def main():
# check arg length
args = sys.argv[1:]
if len(args) < 1:
print(USAGE)
print(USAGE, file=sys.stderr)
sys.exit(1)

# parse args
Expand Down
2 changes: 1 addition & 1 deletion pykwasm/src/pykwasm/fund_acct.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def main():
# check arg count
args = sys.argv[1:]
if len(args) < 1 or len(args) > 2:
print(USAGE)
print(USAGE, file=sys.stderr)
sys.exit(1)

# parse args
Expand Down

0 comments on commit d0d2da6

Please sign in to comment.