Skip to content

Commit 99a7524

Browse files
committed
fix: write prerequisite error messages to stderr in setup-tasks.ps1
1 parent 4bb64bd commit 99a7524

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

scripts/powershell/setup-tasks.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ if (-not (Test-FeatureBranch -Branch $paths.CURRENT_BRANCH -HasGit:$paths.HAS_GI
2525

2626
# Validate prerequisites
2727
if (-not (Test-Path $paths.FEATURE_DIR -PathType Container)) {
28-
Write-Output "ERROR: Feature directory not found: $($paths.FEATURE_DIR)"
29-
Write-Output "Run /speckit.specify first to create the feature structure."
28+
[Console]::Error.WriteLine("ERROR: Feature directory not found: $($paths.FEATURE_DIR)")
29+
[Console]::Error.WriteLine("Run /speckit.specify first to create the feature structure.")
3030
exit 1
3131
}
3232

3333
if (-not (Test-Path $paths.IMPL_PLAN -PathType Leaf)) {
34-
Write-Output "ERROR: plan.md not found in $($paths.FEATURE_DIR)"
35-
Write-Output "Run /speckit.plan first to create the implementation plan."
34+
[Console]::Error.WriteLine("ERROR: plan.md not found in $($paths.FEATURE_DIR)")
35+
[Console]::Error.WriteLine("Run /speckit.plan first to create the implementation plan.")
3636
exit 1
3737
}
3838

0 commit comments

Comments
 (0)