provide proper error message
This commit is contained in:
1 parent
2cbbdc23c6
commit
9f0e000295
1 file changed
+1
-1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user