Skip to content

Feature Request: Display Script Output on Failure (xbox_drv_installer.sh) #218

@forkymcforkface

Description

@forkymcforkface

Problem

Currently, when the frontend executes a shell script and it fails, the UI throws away the script's actual error message and strictly hardcodes Script exited with status %d.

Because of this, we cannot tell users why something failed (e.g., "Internet Required"). The user just sees "status 1"

Proposed Solution (Minimal Change)

Instead of unconditionally printing the hardcoded Script exited with status %d message, please have the frontend grab the last non-empty line from the script's output buffer (stderr or stdout) and display that text in the UI error state.

How it works for us:

If we want to show a specific error, our script just prints it right before exiting:

curl -fsSL https://... || { echo "Internet Required"; exit 1; }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions