Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check: output problems to stderr #86

Merged
merged 1 commit into from
Sep 26, 2022
Merged

Conversation

burmudar
Copy link
Contributor

the error that is returned in init() gets outputted to stderr, while the problems that were printed just before it were outputted to stderr. On a terminal one won't notice it, but once you have scripts/commands that read from stderr and stdout seperately and do different things, the output gets disjointed.

As can be seen here https://sourcegraph.slack.com/archives/C01N83PS4TU/p1664207483448289

Test plan

  1. Build docsite.
  2. Copy to sourcegraph/sourcegraph
  3. Run ./docsite check >stdout.txt 2>stderr.txt
  4. stdout.txt should be empty and stderr.txt should have all the error output

@burmudar burmudar merged commit df76df6 into main Sep 26, 2022
@burmudar burmudar deleted the wb/check-problem-stderr-output branch September 26, 2022 16:44
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.

2 participants