vold: asec path cmd now returns OpFailedStorageNotFound if id doesn't exist
Change-Id: Icbe3de7c28505f7496c8f8edea126c7b616de475
Signed-off-by: San Mehat <san@google.com>
diff --git a/ResponseCode.cpp b/ResponseCode.cpp
index d0410b6..cb9f98c 100644
--- a/ResponseCode.cpp
+++ b/ResponseCode.cpp
@@ -33,6 +33,8 @@
return(ResponseCode::OpFailedMediaCorrupt);
} else if (errno == EBUSY) {
return(ResponseCode::OpFailedStorageBusy);
+ } else if (errno == ENOENT) {
+ return(ResponseCode::OpFailedStorageNotFound);
}
LOGW("Returning OperationFailed - no handler for errno %d", errno);