Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download error message #3397

Merged
merged 2 commits into from Jun 12, 2018
Merged

Download error message #3397

merged 2 commits into from Jun 12, 2018

Conversation

rjbou
Copy link
Collaborator

@rjbou rjbou commented Jun 7, 2018

This PR closes #3393.
It adds two levels of download error message: a short one to be displayed on normal mode and a more complete one on verbose mode (when it is needed, when the message itself is short, it is the same on both modes). For the moment, no specific error download message is displayed to user, it is only filled on json file output when option is set.

Copy link
Member

@AltGr AltGr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@@ -20,7 +20,7 @@ open OpamStateTypes
This doesn't update dev packages that already have a locally cached
source. *)
val download_package:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can the returned type be documented ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@@ -49,7 +49,7 @@ type std_path =
(** Download result *)
type 'a download =
| Up_to_date of 'a
| Not_available of string
| Not_available of string option * string
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be documented too

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@AltGr AltGr merged commit 20066e2 into ocaml:master Jun 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Have a more specific error message when checksum of an archive fails
2 participants