Merge "trusty: apploader: Handle invalid version error"

This commit is contained in:
Arve Hjønnevåg 2021-05-27 18:45:16 +00:00 committed by Gerrit Code Review
commit 7c8ec7b33b
2 changed files with 5 additions and 0 deletions

View file

@ -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;

View file

@ -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,
};
/**