Signals' page copy says what happens, not that Jev does it; Auto spins while it picks (#263)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -518,7 +518,7 @@ async fn pick_signal_icon(
|
||||
Json(body): Json<IconAsk>,
|
||||
) -> Result<Json<serde_json::Value>, ApiError> {
|
||||
let Ok(key) = std::env::var("TYPESAFE_KEY") else {
|
||||
return Err(ApiError::not_found("this server has no TypeSafe key to pick icons with"));
|
||||
return Err(ApiError::not_found("picking an icon is not set up on this server"));
|
||||
};
|
||||
let name = signal_name(&body.name)?;
|
||||
let words = clean_words(body.keywords)?;
|
||||
@@ -538,7 +538,7 @@ async fn pick_signal_icon(
|
||||
.await
|
||||
.map_err(|e| {
|
||||
tracing::warn!(error = %format!("{e:#}"), "Jev could not pick an icon");
|
||||
ApiError::bad_gateway("Jev could not pick an icon just now")
|
||||
ApiError::bad_gateway("no icon could be picked just now")
|
||||
})?;
|
||||
Ok(Json(serde_json::json!({ "icon": icon })))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user