mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-07 18:08:53 +00:00
5fa1ebad13
To create an error human readable message should be provided among other argmunts. Which is good to better understanding what happend by log records. To make it more informative user in most cases should put in those message some data (numbers, strings etc.). This operator will help us to avoid using verbose constructions like boost::format or std::ostringstream or something similar to format a proper error message. We will be able just to "stream" in a created error any "printable" variables from the context. Additionaly we will be able to use "fancy" tools for streams like boost::io::quoted or std::hex to format messages. Example: ```c++ createError(SystemErorr::NoSuchFile, "Could not read pidfile: ") << boost::io::quoted(pidfile_path) << " " << read_status.toString(); ``` |
||
---|---|---|
.. | ||
carver | ||
config | ||
core | ||
database | ||
devtools | ||
dispatcher | ||
distributed | ||
events | ||
examples | ||
extensions | ||
filesystem | ||
logger | ||
main | ||
registry | ||
remote | ||
sql | ||
tables | ||
tests | ||
utils | ||
CMakeLists.txt |