bazel, mirror: print exit err in mirror/mirror.go (#49691)

close pingcap/tidb#49690
This commit is contained in:
YangKeao
2023-12-22 13:38:04 +08:00
committed by GitHub
parent 4073030b97
commit 6a8976f2fd

View File

@ -481,6 +481,10 @@ func mirror() error {
func main() {
flag.Parse()
if err := mirror(); err != nil {
var exitErr *exec.ExitError
if errors.As(err, &exitErr) {
panic("subprocess exited with stderr:\n" + string(exitErr.Stderr))
}
panic(err)
}
}