소스 검색

provide proper error message

Bunny Bites 1 년 전
부모
커밋
9f0e000295
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/html/src/events/form.rs

+ 1 - 1
packages/html/src/events/form.rs

@@ -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();