Fix error message
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
This commit is contained in:
parent
272012ea5c
commit
925bc84427
|
@ -51,7 +51,7 @@ end = struct
|
||||||
type t = string
|
type t = string
|
||||||
|
|
||||||
let error_message =
|
let error_message =
|
||||||
"Error: invalid library name\n\
|
"invalid library name.\n\
|
||||||
Hint: library names must be non-empty and composed only of \
|
Hint: library names must be non-empty and composed only of \
|
||||||
the following characters: 'A'..'Z', 'a'..'z', '_' or '0'..'9'"
|
the following characters: 'A'..'Z', 'a'..'z', '_' or '0'..'9'"
|
||||||
|
|
||||||
|
@ -934,8 +934,8 @@ module Library = struct
|
||||||
of_sexp_errorf loc
|
of_sexp_errorf loc
|
||||||
"%s.\n\
|
"%s.\n\
|
||||||
Public library names don't have this restriction. \
|
Public library names don't have this restriction. \
|
||||||
You can either change this public name to be a valid \
|
You can either change this public name to be a valid library \
|
||||||
library name or add a `name` field with a valid library name."
|
name or add a \"name\" field with a valid library name."
|
||||||
Lib_name.error_message
|
Lib_name.error_message
|
||||||
else
|
else
|
||||||
of_sexp_error loc "name field cannot be omitted before version \
|
of_sexp_error loc "name field cannot be omitted before version \
|
||||||
|
|
|
@ -22,7 +22,7 @@ there's only a public name but it's invalid as a name
|
||||||
|
|
||||||
$ dune build --root public-name-invalid-name
|
$ dune build --root public-name-invalid-name
|
||||||
File "dune", line 1, characters 22-28:
|
File "dune", line 1, characters 22-28:
|
||||||
Error: Error: invalid library name
|
Error: invalid library name.
|
||||||
Hint: library names must be non-empty and composed only of the following characters: 'A'..'Z', 'a'..'z', '_' or '0'..'9'.
|
Hint: library names must be non-empty and composed only of the following characters: 'A'..'Z', 'a'..'z', '_' or '0'..'9'.
|
||||||
Public library names don't have this restriction. You can either change this public name to be a valid library name or add a `name` field with a valid library name.
|
Public library names don't have this restriction. You can either change this public name to be a valid library name or add a "name" field with a valid library name.
|
||||||
[1]
|
[1]
|
||||||
|
|
Loading…
Reference in New Issue