# HG changeset patch # User Matt Harbison # Date 2019-11-21 20:39:03 # Node ID 882e633ac92cf73b2fcf9f6cf8d058d300d80908 # Parent 6c8ba31405d9bdbe2d7b7b93ce712c297616ad1a profiling: add a missing argument to the ProgrammingError constructor Differential Revision: https://phab.mercurial-scm.org/D7470 diff --git a/mercurial/profiling.py b/mercurial/profiling.py --- a/mercurial/profiling.py +++ b/mercurial/profiling.py @@ -204,7 +204,7 @@ class profile(object): 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