Adjust error messages (#1969)

<img width="1378" height="285" alt="image"
src="https://github.com/user-attachments/assets/f0283378-f839-4a1f-8331-909694a04b1f"
/>
This commit is contained in:
pakrym-oai
2025-08-07 18:24:34 -07:00
committed by GitHub
parent cd06b28d84
commit fa0051190b
5 changed files with 98 additions and 17 deletions

View File

@@ -67,6 +67,13 @@ impl PlanType {
}
}
}
pub fn as_string(&self) -> String {
match self {
Self::Known(known) => format!("{known:?}").to_lowercase(),
Self::Unknown(s) => s.clone(),
}
}
}
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]