mirror of
https://github.com/narrrl/proton-stream.git
synced 2026-11-04 00:47:00 +01:00
fix(core,android,app): say why a crawl failed, not only which URL
A transport failure's text is reqwest's "error sending request for url (…)", and the cause sits further down its source chain. Error::describe appends the causes and drops the URL, so the reason fits on a share row.
This commit is contained in:
1 parent
4f130d1d6e
commit
85bc975f5f
3 files changed
+55
-3
No files matched your search
@@ -2637,11 +2637,11 @@ impl AndroidEngine {
|
||||
if let Err(error) = self
|
||||
.catalog
|
||||
.lock()
|
||||
.record_crawl_failure(&id, &error.to_string())
|
||||
.record_crawl_failure(&id, &error.describe())
|
||||
{
|
||||
log::warn!("record a failed crawl: {error}");
|
||||
}
|
||||
return Err(BridgeError::from_display(error));
|
||||
return Err(BridgeError::from_display(error.describe()));
|
||||
}
|
||||
};
|
||||
let rows = build_rows(&id, &nodes);
|
||||
|
||||
Reference in new issue
Block a user