Skip to content

Commit 5853d46

Browse files
committed
debug network creation
1 parent 1fb582b commit 5853d46

File tree

1 file changed

+6
-1
lines changed
  • framework/components/blockchain

1 file changed

+6
-1
lines changed

framework/components/blockchain/ton.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,18 @@ func newTon(in *Input) (*Output, error) {
104104
networkName := "ton"
105105
lightCLientSubNet := "172.28.0.0/16"
106106
//nolint:gosec
107-
_ = exec.Command("docker", "network", "create",
107+
cmd := exec.Command("docker", "network", "create",
108108
"--driver=bridge",
109109
"--attachable",
110110
fmt.Sprintf("--subnet=%s", lightCLientSubNet),
111111
"--label=framework=ctf",
112112
networkName,
113113
)
114+
output, err := cmd.CombinedOutput()
115+
framework.L.Info().Str("output", string(output)).Msg("TON Docker network created")
116+
if err != nil {
117+
return nil, fmt.Errorf("failed to create docker network: %v", err)
118+
}
114119

115120
tonServices := []containerTemplate{
116121
{

0 commit comments

Comments
 (0)