Jie Yu created MESOS-5738:
-----------------------------

             Summary: Consider adding a CHECK_NOTERROR to stout/check.hpp.
                 Key: MESOS-5738
                 URL: https://issues.apache.org/jira/browse/MESOS-5738
             Project: Mesos
          Issue Type: Wish
          Components: stout
            Reporter: Jie Yu


This will be similar to CHECK_NOTNULL which returns actual object.

For instance, we used the following pattern in the code in many places:
{code}
string value = strings::format(...).get();
{code}

It'll be ideal if we can do the following so that we get better diagnosis 
messages when check fails:
{code}
string value = CHECK_NOTERROR(strings::format(...));
{code} 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to