From b21c94474eb4646e60d7b4b92e908ac94efe9422 Mon Sep 17 00:00:00 2001 From: Andrew Lindesay Date: Thu, 27 Feb 2020 22:44:22 +1300 Subject: [PATCH] HaikuDepot: Instructions on Logs Some error messages make mention of application logs and users don't know how to view the logs. This change adds some instructions about that to the user guide and also directs the user to the user guide in any error messages that mention the logs. Change-Id: Ib98737abe853586c58a1c1df7befb86aa1c04491 Reviewed-on: https://review.haiku-os.org/c/haiku/+/2285 Reviewed-by: humdinger --- src/apps/haikudepot/HaikuDepotConstants.h | 3 +++ src/apps/haikudepot/ui/MainWindow.cpp | 3 ++- src/apps/haikudepot/ui/UserLoginWindow.cpp | 3 ++- src/apps/haikudepot/ui/UserUsageConditionsWindow.cpp | 3 ++- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/apps/haikudepot/HaikuDepotConstants.h b/src/apps/haikudepot/HaikuDepotConstants.h index 4e79b348ca..ba01cd06d3 100644 --- a/src/apps/haikudepot/HaikuDepotConstants.h +++ b/src/apps/haikudepot/HaikuDepotConstants.h @@ -78,4 +78,7 @@ enum UserUsageConditionsSelectionMode { #define STR_MDASH "\xE2\x80\x94" +#define ALERT_MSG_LOGS_USER_GUIDE "Information about how to view the logs is " \ + "available in the HaikuDepot section of the user guide." + #endif // HAIKU_DEPOT_CONSTANTS_H \ No newline at end of file diff --git a/src/apps/haikudepot/ui/MainWindow.cpp b/src/apps/haikudepot/ui/MainWindow.cpp index f2c8a9967c..1882c393c2 100644 --- a/src/apps/haikudepot/ui/MainWindow.cpp +++ b/src/apps/haikudepot/ui/MainWindow.cpp @@ -972,7 +972,8 @@ MainWindow::_BulkLoadProcessCoordinatorFinished( "that may cause data to be outdated or missing from the " "application's display. Additional details regarding this " "problem may be able to be obtained from the application " - "logs.")); + "logs." + ALERT_MSG_LOGS_USER_GUIDE)); } BMessenger messenger(this); messenger.SendMessage(MSG_BULK_LOAD_DONE); diff --git a/src/apps/haikudepot/ui/UserLoginWindow.cpp b/src/apps/haikudepot/ui/UserLoginWindow.cpp index 6a4e5eb84f..23b90c9a1d 100644 --- a/src/apps/haikudepot/ui/UserLoginWindow.cpp +++ b/src/apps/haikudepot/ui/UserLoginWindow.cpp @@ -785,7 +785,8 @@ UserLoginWindow::_CreateAccountUserUsageConditionsSetupThread( B_TRANSLATE("Usage conditions download problem"), B_TRANSLATE("An error has arisen downloading the usage " "conditions required to create a new user. Check the log for " - "details and try again.")); + "details and try again. " + ALERT_MSG_LOGS_USER_GUIDE)); } return result; diff --git a/src/apps/haikudepot/ui/UserUsageConditionsWindow.cpp b/src/apps/haikudepot/ui/UserUsageConditionsWindow.cpp index 62bb88de02..dc7bd042f4 100644 --- a/src/apps/haikudepot/ui/UserUsageConditionsWindow.cpp +++ b/src/apps/haikudepot/ui/UserUsageConditionsWindow.cpp @@ -391,7 +391,8 @@ UserUsageConditionsWindow::_NotifyFetchProblem() AppUtils::NotifySimpleError( B_TRANSLATE("Usage conditions download problem"), B_TRANSLATE("An error has arisen downloading the usage " - "conditions. Check the log for details and try again.")); + "conditions. Check the log for details and try again. " + ALERT_MSG_LOGS_USER_GUIDE)); }