IronCoreLabs / ironoxide

Rust SDK for IronCore Privacy Platform
https://docs.rs/ironoxide
GNU Affero General Public License v3.0
10 stars 3 forks source link

Improve error message from ironoxide init timeout #275

Open BobWall23 opened 2 years ago

BobWall23 commented 2 years ago

@cjyar commented on Thu Jun 16 2022

As a naive user, who may not remember how the TSP works, I want a clear error message that tells me what the problem is if ironoxde can't be initialized.

The current error message is:

thread 'main' panicked at 'Startup failed: failed to initialize the IronCore SDK with the provided credentials. Operation 'InitializeSdk' timed out after 30000ms', src/util/serde.rs:13:19

AC:


@BobWall23 commented on Wed Jun 29 2022

If we added a timeout on the request that was shorter than 30 sec, we would get the error from the reqwest client instead of the generic timeout error, and could propagate that up.