Skip to content

Commit

Permalink
fixup! Implement proper error message on unsupported URL
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonidas-from-XIV committed Jun 21, 2022
1 parent ad691e9 commit ab8c043
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cli/lock.ml
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,8 @@ let make_repository_locally_available url =
| `http | `rsync | #OpamUrl.version_control ->
Rresult.R.error_msgf
"Only git and local file systems (file://) are supported at the \
moment, got %a" Opam.Pp.url url
moment, got %a"
Opam.Pp.url url
in
match url_result with
| Error _ as e -> Done e
Expand Down

0 comments on commit ab8c043

Please sign in to comment.