Skip to content

Commit

Permalink
fix: return correct error type
Browse files Browse the repository at this point in the history
  • Loading branch information
grumbach committed Oct 16, 2023
1 parent fea5ed9 commit 0d363d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sn_client/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,8 @@ impl Client {
return merge_split_register_records(address, &map)
}
Err(e) => {
return Err(e.into());
warn!("Failed to get record at {address:?} from the network: {e:?}");
return Err(ProtocolError::RegisterNotFound(Box::new(address)).into());
}
};

Expand Down

0 comments on commit 0d363d5

Please sign in to comment.