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

login
register
mail settings
Submitter phabricator
Date Nov. 21, 2019, 11:23 p.m.
Message ID <differential-rev-PHID-DREV-zxh5adwnfcfhqn7ryjdb-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/43394/
State Superseded
Headers show

Comments

phabricator - Nov. 21, 2019, 11:23 p.m.
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




To: mharbison72, #hg-reviewers
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