Add new error handling 14/118914/2
authorBartlomiej <b.kunikowski@partner.samsung.com>
Tue, 14 Mar 2017 12:00:29 +0000 (13:00 +0100)
committerBartlomiej Kunikowski <b.kunikowski@partner.samsung.com>
Thu, 16 Mar 2017 07:45:02 +0000 (00:45 -0700)
Submit together:
 - https://review.tizen.org/gerrit/#/c/118912/

Change-Id: I25c26ab877f8558f78554f6b5bec75cb7a26e6a7

src/pkg_cmd.c

index 50c4cda..b061591 100644 (file)
@@ -160,6 +160,9 @@ static void __error_no_to_string(int errnumber, char **errstr)
        if (errstr == NULL)
                return;
        switch (errnumber) {
+       case PKGMGR_INSTALLER_ERRCODE_RECOVERY_DONE:
+               *errstr = PKGMGR_INSTALLER_ERRCODE_RECOVERY_DONE_STR;
+               break;
        case PKGMGR_INSTALLER_ERRCODE_GLOBALSYMLINK_ERROR:
                *errstr = PKGMGR_INSTALLER_ERRCODE_GLOBALSYMLINK_ERROR_STR;
                break;