summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoonchan Choi <yc81.choi@samsung.com>2013-05-24 20:07:06 +0900
committerYoonchan Choi <yc81.choi@samsung.com>2013-05-24 20:07:06 +0900
commitef9104c1d992903d527a2c83020879e061b06967 (patch)
treef35787ce08f7b2fa2d03d1d1e5518040bd8fde64
parent7992f2861e83ab5d6cc659dae45e7380ac693ba8 (diff)
downloadAccountApp-ef9104c1d992903d527a2c83020879e061b06967.tar.gz
AccountApp-ef9104c1d992903d527a2c83020879e061b06967.tar.bz2
AccountApp-ef9104c1d992903d527a2c83020879e061b06967.zip
[N_SE-39533] Check the exception for GetAccount()
Change-Id: I075ec8530507dfbbacfc878b69683323016c7bc1 Signed-off-by: Yoonchan Choi <yc81.choi@samsung.com>
-rw-r--r--project/src/ConfigureAccountForm.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/project/src/ConfigureAccountForm.cpp b/project/src/ConfigureAccountForm.cpp
index 6b7bd60..9ff4e87 100644
--- a/project/src/ConfigureAccountForm.cpp
+++ b/project/src/ConfigureAccountForm.cpp
@@ -186,10 +186,19 @@ ConfigureAccountForm::OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previo
AppAssert(pAccountAccessor);
Account account = pAccountAccessor->GetAccount(__accountId);
- if (GetLastResult() == E_USER_NOT_CONSENTED)
+ result r = GetLastResult();
+ if (r != E_SUCCESS)
{
MessageBox messageBox;
- messageBox.Construct(L"Error", L"The account privacy should be enabled.", MSGBOX_STYLE_OK);
+
+ if (r == E_USER_NOT_CONSENTED)
+ {
+ messageBox.Construct(L"Error", L"The account privacy should be enabled.", MSGBOX_STYLE_OK);
+ }
+ else
+ {
+ messageBox.Construct(L"Error", L"Failed to get the account.", MSGBOX_STYLE_OK);
+ }
int modalResult;
messageBox.ShowAndWait(modalResult);