diff --git a/qutebrowser/misc/guiprocess.py b/qutebrowser/misc/guiprocess.py index 95bfac79e..1adf6817e 100644 --- a/qutebrowser/misc/guiprocess.py +++ b/qutebrowser/misc/guiprocess.py @@ -106,8 +106,8 @@ class GUIProcess(QObject): assert status == QProcess.NormalExit # We call this 'status' here as it makes more sense to the user - # it's actually 'code'. - message.error("{} exited with status {}.".format( - self._what.capitalize(), code)) + message.error("{} exited with status {}, see :messages for " + "details.".format(self._what.capitalize(), code)) stderr = bytes(self._proc.readAllStandardError()).decode('utf-8') stdout = bytes(self._proc.readAllStandardOutput()).decode('utf-8') diff --git a/tests/unit/misc/test_guiprocess.py b/tests/unit/misc/test_guiprocess.py index 749031367..674c250e5 100644 --- a/tests/unit/misc/test_guiprocess.py +++ b/tests/unit/misc/test_guiprocess.py @@ -195,7 +195,8 @@ def test_exit_unsuccessful(qtbot, proc, message_mock, py_proc, caplog): proc.start(*py_proc('import sys; sys.exit(1)')) msg = message_mock.getmsg(usertypes.MessageLevel.error) - assert msg.text == "Testprocess exited with status 1." + expected = "Testprocess exited with status 1, see :messages for details." + assert msg.text == expected @pytest.mark.parametrize('stream', ['stdout', 'stderr'])