SWU: Point to log file by name in error messages

This commit is contained in:
Gina Häußge committed 2018-02-12 14:39:58 +01:00
1 parent 00616a3d73
commit 6812001639
1 file changed
+5 -5
@@ -523,7 +523,7 @@ $(function() {
self.updateInProgress = false;
self._showPopup({
title: gettext("Update not started!"),
text: gettext("The update could not be started. Is it already active? Please consult the log for details."),
text: gettext("The update could not be started. Is it already active? Please consult octoprint.log for details."),
type: "error",
hide: false,
buttons: {
@@ -719,7 +719,7 @@ $(function() {
self.waitingForRestart = true;
self.restartTimeout = setTimeout(function() {
title = gettext("Restart failed");
text = gettext("The server apparently did not restart by itself, you'll have to do it manually. Please consult the log file on what went wrong.");
text = gettext("The server apparently did not restart by itself, you'll have to do it manually. Please consult octoprint.log on what went wrong.");
self._showPopup({
title: title,
@@ -762,9 +762,9 @@ $(function() {
}
case "restart_failed": {
restartType = messageData.restart_type;
text = gettext("Restarting OctoPrint failed, please restart it manually. You might also want to consult the log file on what went wrong here.");
text = gettext("Restarting OctoPrint failed, please restart it manually. You might also want to consult octoprint.log on what went wrong here.");
if (restartType === "environment") {
text = gettext("Rebooting the server failed, please reboot it manually. You might also want to consult the log file on what went wrong here.");
text = gettext("Rebooting the server failed, please reboot it manually. You might also want to consult octoprint.log on what went wrong here.");
}
title = gettext("Restart failed");
@@ -800,7 +800,7 @@ $(function() {
}
case "error": {
title = gettext("Update failed!");
text = gettext("The update did not finish successfully. Please consult the log for details.");
text = gettext("The update did not finish successfully. Please consult octoprint.log and plugin_softwareupdate_console.log for details.");
self._showPopup({
title: title,
text: text,