Mirage_git_http: When failing to parse authenticator report what the expected format is
reynir opened this issue · comments
When writing a unikernel that uses git over https you may want to expose a https/tls-authenticator argument so the user can pin a key or certificate. The description of the format is somewhat long and not so nice to put in the argument doc string. However, leaving out the description offers a poor user experience because the user will just get an error message saying the authenticator is invalid if they try to use e.g. a key fingerprint without the prerequisite prefix and they will be none the wiser what the expected format is.
I suggest the error message explains what the expected format is.
ocaml-git/src/git-mirage/git_mirage_http.ml
Lines 290 to 323 in 363d2c3