D7470: profiling: add a missing argument to the ProgrammingError constructor
mharbison72 (Matt Harbison)
phabricator at mercurial-scm.org
Thu Nov 21 23:23:34 UTC 2019
mharbison72 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D7470
AFFECTED FILES
mercurial/profiling.py
CHANGE DETAILS
diff --git a/mercurial/profiling.py b/mercurial/profiling.py
--- a/mercurial/profiling.py
+++ b/mercurial/profiling.py
@@ -204,7 +204,7 @@
If the profiler was already started, this has no effect."""
if not self._entered:
- raise error.ProgrammingError()
+ raise error.ProgrammingError(b'use a context manager to start')
if self._started:
return
self._started = True
To: mharbison72, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list