From 6f3352378fe7effd50c2b7496f11348f27449977 Mon Sep 17 00:00:00 2001 From: bsimmers Date: Fri, 4 Oct 2013 19:46:40 -0700 Subject: [PATCH] Turn one more folly::format error into a fatal 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 --- folly/Format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folly/Format.h b/folly/Format.h index 79a4e705..c4e18f75 100644 --- a/folly/Format.h +++ b/folly/Format.h @@ -121,7 +121,7 @@ class Formatter { template typename std::enable_if::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 -- 2.34.1