Status writeToParcel no OK on ERR
am: 662378eaf6
Change-Id: I0a8f7856cc69ae487f904f772e9ed15a974314eb
diff --git a/transport/HidlBinderSupport.cpp b/transport/HidlBinderSupport.cpp
index ffcbcee..c9b2693 100644
--- a/transport/HidlBinderSupport.cpp
+++ b/transport/HidlBinderSupport.cpp
@@ -222,7 +222,8 @@
// Something really bad has happened, and we're not going to even
// try returning rich error data.
if (s.exceptionCode() == Status::EX_TRANSACTION_FAILED) {
- return s.transactionError();
+ status_t status = s.transactionError();
+ return status == OK ? FAILED_TRANSACTION : status;
}
status_t status = parcel->writeInt32(s.exceptionCode());