Summary:
I missed this one in my original diff. It's a static property of the
format string and the number of arguments passed.
Test Plan:
automated tests. saw that my buggy format() call aborted instead of throwing an
exception
Reviewed By: andrei.alexandrescu@fb.com
FB internal diff:
D998409
@override-unit-failures
template <size_t K, class Callback>
typename std::enable_if<K == valueCount>::type
doFormatFrom(size_t i, FormatArg& arg, Callback& cb) const {
- arg.error("argument index out of range, max=", i);
+ LOG(FATAL) << arg.errorStr("argument index out of range, max=", i);
}
template <size_t K, class Callback>