commit | 971e5f0e1d8cbefc71caddb18c0e993f49e5223d | [log] [tgz] |
---|---|---|
author | Jooyung Han <jooyung@google.com> | Tue Jun 11 13:38:01 2019 +0900 |
committer | Jooyung Han <jooyung@google.com> | Tue Jun 11 13:38:01 2019 +0900 |
tree | 218261cc2ac59077c3889f1d1fd83e32a878f725 | |
parent | 71ab050129930cd24163362a19a80cfd34e6fc91 [diff] |
fix: passing ResultError to Error thru operator<< It is typical to pass error to callers like following; if (!result) { return Error() << result.error(); } To transfer errno(or ResultError#code()), Error defines a specialization operator<<(const ResultError&). This change fixes so that ResultError is properly handled Bug: 132145659 Test: atest libbase_test Change-Id: Ib35457da2d4b923d8e652c54ac510a75546cf918