aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/util/github.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/util/github.rs')
-rw-r--r--crates/shirabe/src/util/github.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/shirabe/src/util/github.rs b/crates/shirabe/src/util/github.rs
index 01a5dd1f..066f0ff5 100644
--- a/crates/shirabe/src/util/github.rs
+++ b/crates/shirabe/src/util/github.rs
@@ -9,6 +9,7 @@ use crate::util::HttpDownloader;
use crate::util::ProcessExecutor;
use indexmap::IndexMap;
use shirabe_external_packages::composer::pcre::{CaptureKey, Preg};
+use shirabe_php_shim::Catch as _;
use shirabe_php_shim::{PhpMixed, date, in_array_loose, php_regex, stripos, strtolower};
#[derive(Debug)]
@@ -233,7 +234,7 @@ impl GitHub {
Ok(_) => {}
Err(te) => {
let code = te
- .downcast_ref::<crate::downloader::TransportException>()
+ .catch::<crate::downloader::TransportException>()
.map(|t| t.get_code())
.unwrap_or(0);
if code == 403 || code == 401 {