Add a case of timeout error in AulSvcErrorConvert 80/284080/4
authorChanggyu Choi <changyu.choi@samsung.com>
Wed, 9 Nov 2022 08:51:37 +0000 (17:51 +0900)
committerChanggyu Choi <changyu.choi@samsung.com>
Fri, 11 Nov 2022 05:55:09 +0000 (05:55 +0000)
After applying this patch, when app control receives a timeout error,
it converts the error to APP_CONTROL_ERROR_TIMED_OUT.

Requires:
 - https://review.tizen.org/gerrit/c/platform/core/appfw/aul-1/+/284079

Change-Id: I5ecd323315bf75da46cf10fbd3a5b40ea792e4c0
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
src/app-control/util.cc

index 5d980cf..a491f15 100644 (file)
@@ -63,6 +63,8 @@ int Util::AulSvcErrorConvert(int res) {
     return APP_CONTROL_ERROR_PERMISSION_DENIED;
   case AUL_SVC_RET_EINVAL:
     return APP_CONTROL_ERROR_INVALID_PARAMETER;
+  case AUL_SVC_RET_ETIMEOUT:
+    return APP_CONTROL_ERROR_TIMED_OUT;
   default:
     return APP_CONTROL_ERROR_LAUNCH_REJECTED;
   }