Skip to content

check: output problems to stderr#86

Merged
burmudar merged 1 commit intomainfrom
wb/check-problem-stderr-output
Sep 26, 2022
Merged

check: output problems to stderr#86
burmudar merged 1 commit intomainfrom
wb/check-problem-stderr-output

Conversation

@burmudar
Copy link
Copy Markdown
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