From 64bf4e99d5b62cfc0315035efa47dc9f944473e1 Mon Sep 17 00:00:00 2001 From: Jorropo Date: Thu, 8 Sep 2022 17:37:26 +0200 Subject: [PATCH] chore: fix incorrect log message when a bad option is passed --- bitswap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitswap.go b/bitswap.go index cc98a7db..226ce83c 100644 --- a/bitswap.go +++ b/bitswap.go @@ -73,7 +73,7 @@ func New(ctx context.Context, net network.BitSwapNetwork, bstore blockstore.Bloc case option: typedOption(bs) default: - panic(fmt.Errorf("unknown option type passed to bitswap.New, got: %T, %v; expected: %T, %T or %T", typedOption, typedOption, server.Option(nil), client.Option(nil), server.Option(nil))) + panic(fmt.Errorf("unknown option type passed to bitswap.New, got: %T, %v; expected: %T, %T or %T", typedOption, typedOption, server.Option(nil), client.Option(nil), option{})) } }