Status writeToParcel no OK on ERR am: 662378eaf6 am: 8437841a95
am: eb69424a2a
Change-Id: I3b977398666d4f3e7ce81df0ae685d21012ca616
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());