Skip to content

Improve unexpected error message when build fails #4754

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 1, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion readthedocs/doc_builder/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ class BuildEnvironmentError(BuildEnvironmentException):

GENERIC_WITH_BUILD_ID = ugettext_noop(
'There was a problem with Read the Docs while building your documentation. '
'Please report this to us with your build id ({build_id}).',
'Please try again later. '
'However, if this problem persists, '
'please report this to us with your build id ({build_id}).',
)


Expand Down
11 changes: 7 additions & 4 deletions readthedocs/rtd_tests/tests/test_doc_building.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,9 @@ def test_failing_execution_with_unexpected_exception(self):
'length': mock.ANY,
'error': (
'There was a problem with Read the Docs while building your '
'documentation. Please report this to us with your build id (123).'
'documentation. Please try again later. However, if this '
'problem persists, please report this to us with your '
'build id (123).'
),
'setup': '',
'output': '',
Expand Down Expand Up @@ -485,9 +487,10 @@ def _inner():
'exit_code': 1,
'length': 0,
'error': (
"There was a problem with Read the Docs while building your "
"documentation. Please report this to us with your build id "
"(123)."
'There was a problem with Read the Docs while building your '
'documentation. Please try again later. However, if this '
'problem persists, please report this to us with your '
'build id (123).'
),
'setup': '',
'output': '',
Expand Down