mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-24 16:10:46 -06:00
comments
This commit is contained in:
parent
f9e830705d
commit
743c3684c5
3
main.go
3
main.go
@ -114,6 +114,9 @@ func wrappedMain() int {
|
|||||||
return exitCode
|
return exitCode
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// copyOutput uses output prefixes to determine whether data on stdout
|
||||||
|
// should go to stdout or stderr. This is due to panicwrap using stderr
|
||||||
|
// as the log and error channel.
|
||||||
func copyOutput(r io.Reader) {
|
func copyOutput(r io.Reader) {
|
||||||
pr, err := prefixedio.NewReader(r)
|
pr, err := prefixedio.NewReader(r)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user