fix: graceful error on inbox parse failure instead of panic
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -84,7 +84,7 @@ impl ColonyClient {
|
||||
.get(self.url(&format!("/api/inbox?{}", self.config.user_query())))
|
||||
.send().await.unwrap_or_else(|e| { eprintln!("colony unreachable: {e}"); process::exit(1); });
|
||||
if !res.status().is_success() { self.handle_error(res).await; }
|
||||
res.json().await.unwrap()
|
||||
res.json().await.unwrap_or_else(|e| { eprintln!("failed to parse inbox response: {e}"); process::exit(1); })
|
||||
}
|
||||
|
||||
pub async fn ack_inbox(&self, ids: &[i64]) -> serde_json::Value {
|
||||
|
||||
2
ui/colony/.colony.toml
Normal file
2
ui/colony/.colony.toml
Normal file
@@ -0,0 +1,2 @@
|
||||
api_url = "https://apes.unslope.com"
|
||||
user = "neeraj"
|
||||
Reference in New Issue
Block a user