Bug 1543246 - Suggest |./mach busted| when something breaks. r=froydnj
authorBobby Holley <bobbyholley@gmail.com>
Wed, 10 Apr 2019 16:40:14 +0000
changeset 468803 426c8e0063416e851eb09473580fdd4962436911
parent 468802 c8dd1ef3daf2537401433b4fec32e6057817c156
child 468804 a4d2565280511f4253d4fd2c5dfaa86bc537f381
push id35850
push userdvarga@mozilla.com
push dateWed, 10 Apr 2019 21:52:56 +0000
treeherdermozilla-central@9d3dbe3fef26 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1543246
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1543246 - Suggest |./mach busted| when something breaks. r=froydnj Depends on D26818 Differential Revision: https://phabricator.services.mozilla.com/D26930
python/mach/mach/main.py
--- a/python/mach/mach/main.py
+++ b/python/mach/mach/main.py
@@ -32,47 +32,46 @@ from .decorators import (
     CommandProvider,
 )
 
 from .config import ConfigSettings
 from .dispatcher import CommandAction
 from .logging import LoggingManager
 from .registrar import Registrar
 
+SUGGEST_MACH_BUSTED = r'''
+You can invoke |./mach busted| to check if this issue is already on file. If it
+isn't, please use |./mach busted file| to report it. If |./mach busted| is
+misbehaving, you can also inspect the dependencies of bug 1543241.
+'''.lstrip()
 
 MACH_ERROR = r'''
 The error occurred in mach itself. This is likely a bug in mach itself or a
 fundamental problem with a loaded module.
 
-Please consider filing a bug against mach by going to the URL:
-
-    https://bugzilla.mozilla.org/enter_bug.cgi?product=Firefox%20Build%20System&component=Mach%20Core
-
-'''.lstrip()
+'''.lstrip() + SUGGEST_MACH_BUSTED
 
 ERROR_FOOTER = r'''
 If filing a bug, please include the full output of mach, including this error
 message.
 
 The details of the failure are as follows:
 '''.lstrip()
 
 COMMAND_ERROR = r'''
 The error occurred in the implementation of the invoked mach command.
 
 This should never occur and is likely a bug in the implementation of that
-command. Consider filing a bug for this issue.
-'''.lstrip()
+command.
+'''.lstrip() + SUGGEST_MACH_BUSTED
 
 MODULE_ERROR = r'''
 The error occurred in code that was called by the mach command. This is either
 a bug in the called code itself or in the way that mach is calling it.
-
-You should consider filing a bug for this issue.
-'''.lstrip()
+'''.lstrip() + SUGGEST_MACH_BUSTED
 
 NO_COMMAND_ERROR = r'''
 It looks like you tried to run mach without a command.
 
 Run |mach help| to show a list of commands.
 '''.lstrip()
 
 UNKNOWN_COMMAND_ERROR = r'''