diff options
| author | seth <[email protected]> | 2023-11-30 23:30:00 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-12-01 07:12:49 -0500 |
| commit | 85402f9103b55dff65c6a6079c6902080e5a30a6 (patch) | |
| tree | eba04a9f9938ac1d7ac14cb5d7bc5e0fb8f4db16 /src/utils.rs | |
| parent | 41dfa94258215769b9d844875e79097d4a498770 (diff) | |
feat: add redis for reactboard
Diffstat (limited to 'src/utils.rs')
| -rw-r--r-- | src/utils.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.rs b/src/utils.rs index c0353f0..10140f4 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -24,7 +24,7 @@ pub fn random_choice<const N: usize>(arr: [&str; N]) -> Result<String> { let mut rng = rand::thread_rng(); let resp = arr .choose(&mut rng) - .ok_or_else(|| eyre!("couldn't choose from array!"))?; + .ok_or_else(|| eyre!("Couldn't choose random object from array:\n{arr:#?}!"))?; Ok((*resp).to_string()) } |
