diff options
author | Yoonchan Choi <yc81.choi@samsung.com> | 2013-05-24 20:07:06 +0900 |
---|---|---|
committer | Yoonchan Choi <yc81.choi@samsung.com> | 2013-05-24 20:07:06 +0900 |
commit | ef9104c1d992903d527a2c83020879e061b06967 (patch) | |
tree | f35787ce08f7b2fa2d03d1d1e5518040bd8fde64 | |
parent | 7992f2861e83ab5d6cc659dae45e7380ac693ba8 (diff) | |
download | AccountApp-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.cpp | 13 |
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); |