Patchwork D7470: profiling: add a missing argument to the ProgrammingError constructor

login
register
mail settings
Submitter phabricator
Date Nov. 22, 2019, 2:51 a.m.
Message ID <0c817e0dbdf0809827b2439035fc3ca9@localhost.localdomain>
Download mbox | patch
Permalink /patch/43401/
State Not Applicable
Headers show

Comments

phabricator - Nov. 22, 2019, 2:51 a.m.
Closed by commit rHG882e633ac92c: profiling: add a missing argument to the ProgrammingError constructor (authored by mharbison72).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7470?vs=18268&id=18274

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7470/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7470

AFFECTED FILES
  mercurial/profiling.py

CHANGE DETAILS




To: mharbison72, #hg-reviewers, indygreg
Cc: mercurial-devel

Patch

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