Skip to content

fix(scripts): return errors for bad script paths, include stderr on failure - #973

Open
delaysystem wants to merge 1 commit into
bee-san:masterfrom
delaysystem:auto-batch1/m2-script-errors
Open

delaysystem wants to merge 1 commit into
bee-san:masterfrom
delaysystem:auto-batch1/m2-script-errors

Conversation

@delaysystem

@delaysystem delaysystem commented Nov 8, 2026 •

Copy link
Copy Markdown

Relates #513 (not claiming its Windows root cause).

Script::run panicked on bad {{script}} paths, now it returns a descriptive error. Failures used to report a bare Exit code = N, now they append a trimmed 500-char stderr tail (message unchanged when stderr is empty).

Tests: 5 new unit tests, none spawning processes per contributing.md; full gates green. Untouched: #963's tag-direction code.

…ailure

Script::run unwrapped the script path and its UTF-8 conversion when
{{script}} was used, panicking instead of erroring. Return descriptive
errors instead. Failures also reported only a bare exit code,
discarding the child's stderr that explains them (the opacity behind
bee-san#513); append a trimmed, bounded stderr tail, keeping the historical
message when stderr is empty.
@sonarqubecloud

sonarqubecloud Bot commented Nov 8, 2026

Copy link
Copy Markdown

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant