Merge "trusty: apploader: Handle invalid version error"
This commit is contained in:
commit
7c8ec7b33b
2 changed files with 5 additions and 0 deletions
|
@ -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 a new issue