osquery-1/osquery/profiler
Alexander Kindyakov 95cd57a576 Yet another overload of createError()
Summary:
There is unnecessary redundancy of how error message now is created.

It could be with string argument:

  return createError(ConversionError::InvalidArgument,
                     "Wrong string representation of boolean ",
                     prop_exp.takeError())
         << boost::io::quoted(from);

And it could be without it:

  return createError(ConversionError::InvalidArgument, prop_exp.takeError())
         << "Wrong string representation of boolean "
         << boost::io::quoted(from);

So, my suggestion is to make it uniform - use only second option and form error
string only with operator<<. This diff introduce function overload without
message within argument list and some usage examples. If everyone ok with it,
I'll remove all cases of 3 args form usage in next diff.

Reviewed By: mkareta

Differential Revision: D14405326

fbshipit-source-id: 47074de1f078e512c95518439557adadcf83cbd3
2019-03-13 05:28:33 -07:00
..
posix Yet another overload of createError() 2019-03-13 05:28:33 -07:00
windows Update osquery licensing wording (#5452) 2019-02-19 10:59:48 -08:00
BUCK Rename profiler.[cpp|h] to code_profiler.[cpp|h] 2019-01-30 08:11:21 -08:00
code_profiler.h Update osquery licensing wording (#5452) 2019-02-19 10:59:48 -08:00