[libc++][format] Improve an exception message.
authorMark de Wever <koraq@xs4all.nl>
Sun, 2 Jan 2022 16:03:58 +0000 (17:03 +0100)
committerMark de Wever <koraq@xs4all.nl>
Wed, 5 Jan 2022 16:43:11 +0000 (17:43 +0100)
commitde731efd4cbc172b8d5ce84ef7c7f39a4527d82b
tree5b4cdfcbe71ac4ab6f868025d2ecbff488c42897
parentf2b40ba40004bfb70d90e9787ad8c9ab6d85646b
[libc++][format] Improve an exception message.

The fix in D116381 makes an existing exception message wrong. This
improves the message and fixes the associated unit tests.

Note other message can be also be improved, but that will be done later.
Changing these messages may cause merge conflicts with other patches
that are under review or WIP.

Depends on D116381

Reviewed By: #libc, Quuxplusone, ldionne

Differential Revision: https://reviews.llvm.org/D116495
libcxx/include/__format/parser_std_format_spec.h
libcxx/test/libcxx/utilities/format/format.string/format.string.std/std_format_spec_bool.pass.cpp
libcxx/test/libcxx/utilities/format/format.string/format.string.std/std_format_spec_char.pass.cpp
libcxx/test/libcxx/utilities/format/format.string/format.string.std/std_format_spec_integer.pass.cpp
libcxx/test/libcxx/utilities/format/format.string/format.string.std/std_format_spec_string.pass.cpp
libcxx/test/std/utilities/format/format.functions/format_tests.h