provide proper error message

This commit is contained in:
Bunny Bites committed 2023-11-09 11:09:07 +05:30
1 parent 2cbbdc23c6
commit 9f0e000295
1 file changed
+1 -1
+1 -1
View File
@@ -47,7 +47,7 @@ impl FormData {
// what we need it to be: { username: "rust", password: "dioxus"}
fn get_parsed_values(&self) -> Result<String, serde_json::Error> {
if self.values.is_empty() {
return Err(serde_json::Error::custom("Values is empty"));
return Err(serde_json::Error::custom("Values array is empty"));
}
let raw_values = self.values.clone();