mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00

Fixed #5387 ### Before ```xsh $XONSH_SHOW_TRACEBACK = False $RAISE_SUBPROC_ERROR = True ls nofile # ls: nofile: No such file or directory # Traceback (most recent call last): # File "<stdin>", line 1, in <module> # ``` ### After ```xsh $RAISE_SUBPROC_ERROR = False $XONSH_SHOW_TRACEBACK = False ls nofile # ls: nofile: No such file or directory $RAISE_SUBPROC_ERROR = True $XONSH_SHOW_TRACEBACK = False ls nofile # ls: nofile: No such file or directory # subprocess.CalledProcessError: Command '['ls', 'nofile']' returned non-zero exit status 1. $RAISE_SUBPROC_ERROR = True $XONSH_SHOW_TRACEBACK = True ls nofile # ls: nofile: No such file or directory # Traceback (most recent call last): # ... # subprocess.CalledProcessError: Command '['ls', 'nofile']' returned non-zero exit status 1. $RAISE_SUBPROC_ERROR = False $XONSH_SHOW_TRACEBACK = True ls nofile # ls: nofile: No such file or directory ``` ## For community ⬇️ **Please click the 👍 reaction instead of leaving a `+1` or 👍 comment** --------- Co-authored-by: a <1@1.1> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
23 lines
208 B
ReStructuredText
23 lines
208 B
ReStructuredText
**Added:**
|
|
|
|
* <news item>
|
|
|
|
**Changed:**
|
|
|
|
* <news item>
|
|
|
|
**Deprecated:**
|
|
|
|
* <news item>
|
|
|
|
**Removed:**
|
|
|
|
* <news item>
|
|
|
|
**Fixed:**
|
|
|
|
* Fixed empty stacktrace for CalledProcessError.
|
|
|
|
**Security:**
|
|
|
|
* <news item>
|