Skip to content

Commit

Permalink
⚙️(App): handle invalid query string
Browse files Browse the repository at this point in the history
Add an error log when the query string is invalid, ensuring that the application can gracefully handle and report such issues.

Signed-off-by: Benign X <[email protected]>
  • Loading branch information
W-Mai committed Nov 18, 2024
1 parent a8948a6 commit 0e86f46
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,8 @@ impl MainApp {
if let Ok(t) = serde_qs::from_str::<TransferData>(&location.query) {
self.code = AnyData::new(t.code);
self.params = t.params;
} else {
error!("Invalid query string");
}
}

Expand Down

0 comments on commit 0e86f46

Please sign in to comment.