trusty: apploader: Handle invalid version error
Bug: 115426059 Test: m Change-Id: Ia7a850cceb1f60e77959cff9726e348d8356c26b
This commit is contained in:
parent
0efd6c2a4c
commit
4b5afea93b
|
@ -220,6 +220,9 @@ static ssize_t read_response(int tipc_fd) {
|
|||
case APPLOADER_ERR_INTERNAL:
|
||||
LOG(ERROR) << "Error: internal apploader error";
|
||||
break;
|
||||
case APPLOADER_ERR_INVALID_VERSION:
|
||||
LOG(ERROR) << "Error: invalid application version";
|
||||
break;
|
||||
default:
|
||||
LOG(ERROR) << "Unrecognized error: " << resp.error;
|
||||
break;
|
||||
|
|
|
@ -44,6 +44,7 @@ enum apploader_command : uint32_t {
|
|||
* @APPLOADER_ERR_ALREADY_EXISTS: application has already been loaded
|
||||
* @APPLOADER_ERR_INTERNAL: miscellaneous or internal apploader
|
||||
* error not covered by the above
|
||||
* @APPLOADER_ERR_INVALID_VERSION: invalid application version
|
||||
*/
|
||||
enum apploader_error : uint32_t {
|
||||
APPLOADER_NO_ERROR = 0,
|
||||
|
@ -54,6 +55,7 @@ enum apploader_error : uint32_t {
|
|||
APPLOADER_ERR_LOADING_FAILED,
|
||||
APPLOADER_ERR_ALREADY_EXISTS,
|
||||
APPLOADER_ERR_INTERNAL,
|
||||
APPLOADER_ERR_INVALID_VERSION,
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue