Skip to content

Commit

Permalink
cm: Add some missing error code translations
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasblixt committed Apr 14, 2023
1 parent da9f259 commit d5e3cee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cm/cm_main.c
Expand Up @@ -138,6 +138,10 @@ static int error_to_wire(int error_code)
return -PB_RESULT_NOT_FOUND;
case -PB_ERR_PART_NOT_BOOTABLE:
return -PB_RESULT_PART_NOT_BOOTABLE;
case -PB_ERR_PARAM:
return -PB_RESULT_INVALID_ARGUMENT;
case -PB_ERR_NOT_SUPPORTED:
return -PB_RESULT_NOT_SUPPORTED;
default:
return -PB_RESULT_ERROR;
}
Expand Down

0 comments on commit d5e3cee

Please sign in to comment.