Skip to content

Commit

Permalink
Fixing error not controlled
Browse files Browse the repository at this point in the history
  • Loading branch information
josediegorobles committed Dec 11, 2023
1 parent 254a241 commit 5cfda51
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/web.rs
Original file line number Diff line number Diff line change
@@ -401,7 +401,10 @@ pub mod rgb {
let media = match pre_req.meta {
Some(media) => {
let media = crate::rgb::import_uda_data(media).await;
Some(IssueMediaRequest::from(media.unwrap()))
match media {
Ok(media) => Some(IssueMediaRequest::from(media)),
Err(err) => return Err(JsValue::from_string(err.to_string())),
}
}
None => None,
};

0 comments on commit 5cfda51

Please sign in to comment.