Skip to content

Commit

Permalink
fix(fetch): handle text/html case
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro committed Oct 22, 2024
1 parent b307667 commit 19474f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rocks-lib/src/operations/fetch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,9 @@ async fn unpack<R: Read + Seek + Send>(
})?;
}
}
Some("text/html") => {
return Err(eyre!("Source returned HTML - it may have been moved or deleted."));
},
Some(other) => {
return Err(eyre!("Rockspec source has unsupported file type {}", other));
}
Expand Down

0 comments on commit 19474f4

Please sign in to comment.