Description
Summary of the new feature / enhancement
When critical errors such as "cannot start EXE due to missing DLL" occur in File Explorer or CMD, an explanatory error dialog is displayed:
When the same kind of error occurs in PowerShell, no error message is displayed, only $LASTEXITCODE
is set:
It would be desirable to make this behavior configurable, so that especially in interactive scenarios the user is supplied with information about what's happening.
This inspired by MKS Korn Shell's set -X
option (@BrucePay will remember...):
From set KornShell flags and positional parameters:
Of course, that exception handler is not desirable for scripted / unattended execution, so it should be off by default.
It doesn't have to be a GUI-based one, outputting the explanatory text to the Error
stream would also be fine.
@corbob has collected repro steps on various shells.
Proposed technical implementation details (optional)
No response