From a7085cfcce9178781e759bb85fc4387ad92a2939 Mon Sep 17 00:00:00 2001 From: Volodymyr Stoiko Date: Thu, 30 Jul 2026 15:43:03 +0000 Subject: [PATCH] cmd: clarify --time parse error in pcap dump The error neither named the offending flag/value nor separated the wrapped error from the message. Reported by Copilot on #1952. --- cmd/pcapDump.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/pcapDump.go b/cmd/pcapDump.go index 4c35478d7..41f9a45ed 100644 --- a/cmd/pcapDump.go +++ b/cmd/pcapDump.go @@ -60,7 +60,7 @@ var pcapDumpCmd = &cobra.Command{ if timeIntervalStr != "" { duration, err := time.ParseDuration(timeIntervalStr) if err != nil { - return fmt.Errorf("invalid format %w", err) + return fmt.Errorf("invalid --time value %q: %w", timeIntervalStr, err) } tempCutoffTime := time.Now().Add(-duration) cutoffTime = &tempCutoffTime