Skip to content

Configurable behavior on critical error: message on Error stream or pop-up dialog #16468

Closed
@sba923

Description

@sba923

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:

image

When the same kind of error occurs in PowerShell, no error message is displayed, only $LASTEXITCODE is set:

image

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:

image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Enhancementthe issue is more of a feature request than a bugNeeds-TriageThe issue is new and needs to be triaged by a work group.Resolution-No ActivityIssue has had no activity for 6 months or moreWG-Engine-Pipeline

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions