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.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/shirabe/src/util/github.rs b/crates/shirabe/src/util/github.rs
index dae4954..285052e 100644
--- a/crates/shirabe/src/util/github.rs
+++ b/crates/shirabe/src/util/github.rs
@@ -241,7 +241,7 @@ impl GitHub {
Err(te) => {
let code = te
.downcast_ref::<crate::downloader::TransportException>()
- .and_then(|t| t.get_status_code())
+ .map(|t| t.get_code())
.unwrap_or(0);
if code == 403 || code == 401 {
self.io.write_error3(