From ae2ed2403cb93218549caaf8a3d39f69b90f60ec Mon Sep 17 00:00:00 2001 From: "donghyuk.yang" Date: Fri, 9 May 2014 14:24:46 +0900 Subject: [PATCH] VIEW: ROOTSTRAP: Modified error message for rootstrap creation. Do not show exception string. Change-Id: If729f81d959340b3ff84dec2ebab9e212c20894a Signed-off-by: donghyuk.yang --- .../tizen/nativeplatform/views/ui/RootstrapUIMessages.properties | 2 +- .../src/org/tizen/nativeplatform/views/ui/RootstrapView.java | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/org.tizen.nativeplatform/src/org/tizen/nativeplatform/views/ui/RootstrapUIMessages.properties b/org.tizen.nativeplatform/src/org/tizen/nativeplatform/views/ui/RootstrapUIMessages.properties index 2d10a1e..b856837 100644 --- a/org.tizen.nativeplatform/src/org/tizen/nativeplatform/views/ui/RootstrapUIMessages.properties +++ b/org.tizen.nativeplatform/src/org/tizen/nativeplatform/views/ui/RootstrapUIMessages.properties @@ -52,7 +52,7 @@ GenRootDlg.Error.Fail.Generate = Failed to generate rootstrap! GenRootDlg.Error.Empty.Snapshot = Snapshot URL is empty GenRootDlg.Error.Empty.Rootstrap = Rootstrap is empty GenRootDlg.Error.Snapshot.Failed = Failed to get snapshot information!\n -GenRootDlg.Error.Gen.Rootstrap.Failed = Generating rootstrap failed!!\n +GenRootDlg.Error.Gen.Rootstrap.Failed = Failed to generate rootstrap. Check log in "Platform Internal" console. GenRootDlg.Error.NoAnyRepos = You need to set repositories. Input snapshot URL and click the "Search" button. GenRootDlg.Error.Incorrect.Info = Failed to validate information for generating rootstrap. GenRootDlg.Error.Empty.Arch = Architecture is empty. diff --git a/org.tizen.nativeplatform/src/org/tizen/nativeplatform/views/ui/RootstrapView.java b/org.tizen.nativeplatform/src/org/tizen/nativeplatform/views/ui/RootstrapView.java index 21537b3..f354fe1 100644 --- a/org.tizen.nativeplatform/src/org/tizen/nativeplatform/views/ui/RootstrapView.java +++ b/org.tizen.nativeplatform/src/org/tizen/nativeplatform/views/ui/RootstrapView.java @@ -1018,8 +1018,7 @@ public class RootstrapView extends ViewPart { }); } catch (Exception e) { logger.error(resources.getString("GenRootDlg.Error.Gen.Rootstrap.Failed"), e); - DialogUtil.openErrorDialog(String.format("%s\n * %s", - resources.getString("GenRootDlg.Error.Gen.Rootstrap.Failed"), e.getMessage())); + DialogUtil.openErrorDialog(resources.getString("GenRootDlg.Error.Gen.Rootstrap.Failed")); return; } finally { RootstrapManager.removeLatestTempDirForRootstrap(); @@ -1177,9 +1176,7 @@ public class RootstrapView extends ViewPart { } catch (Exception e) { logger.error(resources.getString("GenRootDlg.Error.Gen.Rootstrap.Failed"), e); - DialogUtil.openErrorDialog(String.format("%s\n * %s", - resources.getString("GenRootDlg.Error.Gen.Rootstrap.Failed"), - e.getMessage())); + DialogUtil.openErrorDialog(resources.getString("GenRootDlg.Error.Gen.Rootstrap.Failed")); return; } finally { RootstrapManager.removeLatestTempDirForRootstrap(); -- 2.7.4