diff options
author | Jooyung Han <jooyung@google.com> | 2019-06-11 13:38:01 +0900 |
---|---|---|
committer | Jooyung Han <jooyung@google.com> | 2019-06-11 13:38:01 +0900 |
commit | df7d32753ed0328d0cf57a395df498d3bcab0087 (patch) | |
tree | 218261cc2ac59077c3889f1d1fd83e32a878f725 /libutils/Unicode.cpp | |
parent | 5b63cff411a9b04d424dd9f4bc7da1cb3ca9b98e (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
Diffstat (limited to 'libutils/Unicode.cpp')
0 files changed, 0 insertions, 0 deletions