From 3fd0c5e4c25e9b5fc2bc793f9bfbb5cbd193f7e4 Mon Sep 17 00:00:00 2001 From: Andrew Lamb Date: Thu, 20 Oct 2022 05:31:50 -0400 Subject: [PATCH] fix: improve error message for storage read group command (#5915) * fix: improve error message for storage read group command * fix: fmt Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- influxdb_iox/src/commands/storage.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/influxdb_iox/src/commands/storage.rs b/influxdb_iox/src/commands/storage.rs index 144a73cae4..c2eb74c9b1 100644 --- a/influxdb_iox/src/commands/storage.rs +++ b/influxdb_iox/src/commands/storage.rs @@ -40,7 +40,10 @@ pub enum ParseError { #[snafu(display("unsupported aggregate type: '{:?}'", agg))] Aggregate { agg: String }, - #[snafu(display("unsupported group: '{:?}'", group))] + #[snafu(display( + "unsupported group. Expected '0', 'none', '2', or 'by': got '{:?}'", + group + ))] Group { group: String }, }