diff options
| author | main <main@swarm.moe> | 2026-03-20 23:31:29 -0400 |
|---|---|---|
| committer | main <main@swarm.moe> | 2026-03-20 23:31:29 -0400 |
| commit | 3a523c3c8ac1bf9094dbe65a6f53b71085438c0c (patch) | |
| tree | 5055c0e64f3024059221d341f3b81434cae34586 /crates/fidget-spinner-core/src/error.rs | |
| parent | eb0f0f73b7da9d76ff6833757fd265725d3e4b14 (diff) | |
| download | fidget_spinner-3a523c3c8ac1bf9094dbe65a6f53b71085438c0c.zip | |
Open the metric unit vocabulary
Diffstat (limited to 'crates/fidget-spinner-core/src/error.rs')
| -rw-r--r-- | crates/fidget-spinner-core/src/error.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/fidget-spinner-core/src/error.rs b/crates/fidget-spinner-core/src/error.rs index a095f57..67db8bd 100644 --- a/crates/fidget-spinner-core/src/error.rs +++ b/crates/fidget-spinner-core/src/error.rs @@ -4,6 +4,12 @@ use thiserror::Error; pub enum CoreError { #[error("text values must not be blank")] EmptyText, + #[error("metric units must not be blank")] + EmptyMetricUnit, + #[error( + "invalid metric unit `{0}`; expected a built-in unit like `microseconds` or a lowercase ascii token" + )] + InvalidMetricUnit(String), #[error("tag names must not be blank")] EmptyTagName, #[error( |