mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-24 06:55:15 +00:00
Use the https problem reports when something goes wrong while downloading a package
Contributes to #5487
This commit is contained in:
parent
60df1b4603
commit
03eb89a721
1 changed files with 3 additions and 3 deletions
|
@ -1292,7 +1292,6 @@ pub enum LoadingProblem<'a> {
|
|||
filename: PathBuf,
|
||||
error: io::ErrorKind,
|
||||
},
|
||||
HttpsProblem(Problem),
|
||||
ParsingFailed(FileError<'a, SyntaxError<'a>>),
|
||||
UnexpectedHeader(String),
|
||||
|
||||
|
@ -4343,8 +4342,9 @@ fn load_packages<'a>(
|
|||
}
|
||||
}
|
||||
Err(problem) => {
|
||||
load_messages
|
||||
.push(Msg::FailedToLoad(LoadingProblem::HttpsProblem(problem)));
|
||||
let buf = to_https_problem_report_string(src, problem);
|
||||
|
||||
load_messages.push(Msg::FailedToLoad(LoadingProblem::FormattedReport(buf)));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue