Skip to content

Commit 6a96b2a

Browse files
committed
Show a more useful error if -bridge is not given
1 parent bf541d5 commit 6a96b2a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

standalone/ipxbox_uplink.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ func main() {
5252
err = mod.Start(ctx, &module.Parameters{
5353
Uplinkable: &fakeNetwork{conn},
5454
})
55+
if err == module.NotNeeded {
56+
log.Fatalf("please specify a device to bridge to using -bridge=")
57+
}
5558
if err != nil {
5659
log.Fatalf("bridge exited with error: %v", err)
5760
}

0 commit comments

Comments
 (0)