Skip to content

Commit

Permalink
Merge pull request #655 from eth-brownie/fix-run-exitcode
Browse files Browse the repository at this point in the history
exit `brownie run` with non-zero status on exception
  • Loading branch information
iamdefinitelyahuman committed Jul 3, 2020
2 parents 30c7590 + 119704d commit 66c9dbf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions brownie/_cli/run.py
@@ -1,6 +1,7 @@
#!/usr/bin/python3

import inspect
import sys
from pathlib import Path

from brownie import network, project
Expand Down Expand Up @@ -62,6 +63,7 @@ def main():
shell.interact(
banner="\nInteractive mode enabled. Use quit() to close.", exitmsg=""
)
sys.exit(1)

if CONFIG.argv["gas"]:
print("\n======= Gas profile =======")
Expand Down

0 comments on commit 66c9dbf

Please sign in to comment.