Skip to content

Commit 17bf06d

Browse files
committed
Fix error messages.
1 parent 243f82a commit 17bf06d

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

readthedocs/doc_builder/environments.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -419,14 +419,17 @@ def update_build(self, state=None):
419419
if isinstance(self.failure,
420420
(BuildEnvironmentException, BuildEnvironmentWarning)):
421421
self.build['error'] = ugettext_noop(
422-
"A failure in building the documentation as occured: {}".format(
423-
str(self.failure)
422+
"A failure in building the documentation as occured. "
423+
"If you believe this is an error with Read the Docs, "
424+
"please include the build id({}) in your bug report.".format(
425+
self.build['pk']
424426
)
425427
)
426428
else:
427429
self.build['error'] = ugettext_noop(
428-
"A failure in our code has occured. The failure is: {}".format(
429-
str(self.failure)
430+
"A failure in our code has occured. "
431+
"Please report this to us with your build id ({}).".format(
432+
self.build['pk']
430433
)
431434
)
432435

0 commit comments

Comments
 (0)