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>
pull/24376/head
Andrew Lamb 2022-10-20 05:31:50 -04:00 committed by GitHub
parent 487f4a420f
commit 3fd0c5e4c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -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 },
}