Skip to content

Commit

Permalink
hatch debug tracebacks (#1229)
Browse files Browse the repository at this point in the history
Co-authored-by: Ofek Lev <[email protected]>
  • Loading branch information
juftin and ofek authored Mar 3, 2024
1 parent 3c3af2c commit 87e2118
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hatch/cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,5 +221,6 @@ def main(): # no cov
from rich.console import Console

console = Console()
console.print_exception(suppress=[click])
hatch_debug = os.getenv('HATCH_DEBUG') in {'1', 'true'}
console.print_exception(suppress=[click], show_locals=hatch_debug)
return 1

0 comments on commit 87e2118

Please sign in to comment.