Skip to content

v4.2 Bad error reporting #156

@RoYoMi

Description

@RoYoMi

Problem

For those of us using the Configmgr Task Sequence Monitor we'd appreciate a better script termination reporting on failures.

For example this is what we see in when the script fails. The message reads InnerTerminatingFailure. The problem is that every single error will report this same message. This requires the user to then crack open the ApplyDriversPackage.log to see exactly what happened.
image

Recommendation

We'd rather see a descriptive message like this - Validation failed with empty list of matched driver packages for 'ThinkPad X1 Yoga 2nd', script execution will be terminated instead of the meaningless InnerTerminatingFailure .
With this type of message we could immediately start reviewing the root cause.
image

Solution

In theory this could be accomplished by make the following changes every where you're calling New-TerminatingErrorRecord
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions