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 81c59f5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rocks-lib/src/operations/fetch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,11 @@ 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 81c59f5

Please sign in to comment.