diff options
author | Andrew Klotz <agc.klotz@gmail.com> | 2021-02-11 20:30:53 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-02-11 13:44:55 -0800 |
commit | f276e2a469430999ff7e3735ea7b41508ed1abd8 (patch) | |
tree | fc503d5c5161f8c78267e17aa16e9397c5d1f128 /commit.h | |
parent | 773e25afc41b1b6533fa9ae2cd825d0b4a697fad (diff) |
config: improve error message for boolean config
Currently invalid boolean config values return messages about 'bad
numeric', which is slightly misleading when the error was due to a
boolean value. We can improve the developer experience by returning a
boolean error message when we know the value is neither a bool text or
int.
before with an invalid boolean value of `non-boolean`, its unclear what
numeric is referring to:
fatal: bad numeric config value 'non-boolean' for 'commit.gpgsign': invalid unit
now the error message mentions `non-boolean` is a bad boolean value:
fatal: bad boolean config value 'non-boolean' for 'commit.gpgsign'
Signed-off-by: Andrew Klotz <agc.klotz@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.h')
0 files changed, 0 insertions, 0 deletions