Skip to content

Commit

Permalink
clarify message re OC_CAUSE=1 env var
Browse files Browse the repository at this point in the history
* omegaconf/_utils.py: Fix typo, and clarify
that one needs to set the environment variable
to get the full backtrace
  • Loading branch information
pixelb committed Oct 18, 2021
1 parent 32e82d3 commit 6e2462d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion omegaconf/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ def _raise(ex: Exception, cause: Exception) -> None:
ex.__cause__ = cause
else:
ex.__cause__ = None
raise ex.with_traceback(sys.exc_info()[2]) # set end OC_CAUSE=1 for full backtrace
raise ex.with_traceback(sys.exc_info()[2]) # set env var OC_CAUSE=1 for full trace


def format_and_raise(
Expand Down

0 comments on commit 6e2462d

Please sign in to comment.