commit | 072c714582ca468bc896d16c82a0d70a77373f11 | [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 | 8dbba47b8ff44d710722da4b48a96b88814fdb4e | |
parent | e2ea1ef90bb7607e0f2fcc9926e6b79a21f4e4c1 [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