----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/67165/ -----------------------------------------------------------
Review request for mesos. Repository: mesos Description ------- Whenever we currently need to get a `string` representation of `Error`s we explicitly access its `message` member. This makes it hard to use error-like types in generic contexts, e.g., inside `Try` or `Result`. This patch adds functions to stream and `stringify` `Error`s which can be used instead whenever a `string` representation is required. Custom error types can provide similar functions so that generic code can use this open interface instead of being tied to what `Error` provides. Diffs ----- 3rdparty/stout/include/stout/errorbase.hpp 173852ff8f25e8c97decf1c2a6326aec223e9fa2 Diff: https://reviews.apache.org/r/67165/diff/1/ Testing ------- Thanks, Benjamin Bannier